@@ -19,6 +19,11 @@ public class DtcFailuresFixture : TestCase
19
19
{
20
20
private static readonly ILog log = LogManager . GetLogger ( typeof ( DtcFailuresFixture ) ) ;
21
21
22
+ protected override void Configure ( Configuration configuration )
23
+ {
24
+ configuration . SetProperty ( Cfg . Environment . TransactionStrategy , "NHibernate.Test.NHSpecificTest.NH2176.CustomAdoNetTransactionFactory, NHibernate.Test" ) ;
25
+ }
26
+
22
27
protected override IList Mappings
23
28
{
24
29
get { return new [ ] { "NHSpecificTest.DtcFailures.Mappings.hbm.xml" } ; }
@@ -60,7 +65,7 @@ private void BeforeBindMapping(object sender, BindMappingEventArgs e)
60
65
prop . notnullSpecified = true ;
61
66
}
62
67
63
- [ Test ]
68
+ [ Test , Ignore ( "With custom transaction factory, changes not explicitly flushed are ignored, so this test can no more test anything" ) ]
64
69
public void WillNotCrashOnDtcPrepareFailure ( )
65
70
{
66
71
var tx = new TransactionScope ( ) ;
@@ -87,8 +92,8 @@ public void WillNotCrashOnDtcPrepareFailure()
87
92
[ Test ]
88
93
public void Can_roll_back_transaction ( )
89
94
{
90
- if ( Dialect is FirebirdDialect )
91
- Assert . Ignore ( "Firebird driver does not support distributed transactions" ) ;
95
+ /* if (Dialect is FirebirdDialect)
96
+ Assert.Ignore("Firebird driver does not support distributed transactions");*/
92
97
93
98
var tx = new TransactionScope ( ) ;
94
99
using ( ISession s = sessions . OpenSession ( ) )
@@ -113,8 +118,8 @@ public void Can_roll_back_transaction()
113
118
[ Description ( "Another action inside the transaction do the rollBack outside nh-session-scope." ) ]
114
119
public void RollbackOutsideNh ( )
115
120
{
116
- if ( Dialect is FirebirdDialect )
117
- Assert . Ignore ( "Firebird driver does not support distributed transactions" ) ;
121
+ /* if (Dialect is FirebirdDialect)
122
+ Assert.Ignore("Firebird driver does not support distributed transactions");*/
118
123
119
124
try
120
125
{
@@ -143,8 +148,8 @@ public void RollbackOutsideNh()
143
148
[ Description ( "rollback inside nh-session-scope should not commit save and the transaction should be aborted." ) ]
144
149
public void TransactionInsertWithRollBackTask ( )
145
150
{
146
- if ( Dialect is FirebirdDialect )
147
- Assert . Ignore ( "Firebird driver does not support distributed transactions" ) ;
151
+ /* if (Dialect is FirebirdDialect)
152
+ Assert.Ignore("Firebird driver does not support distributed transactions");*/
148
153
149
154
try
150
155
{
0 commit comments