File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed
src/NHibernate.Test/NHSpecificTest/DtcFailures Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change 88using log4net . Repository . Hierarchy ;
99using NHibernate . Cfg ;
1010using NHibernate . Cfg . MappingSchema ;
11+ using NHibernate . Dialect ;
1112using NHibernate . Tool . hbm2ddl ;
1213using NUnit . Framework ;
1314
@@ -86,6 +87,9 @@ public void WillNotCrashOnDtcPrepareFailure()
8687 [ Test ]
8788 public void Can_roll_back_transaction ( )
8889 {
90+ if ( Dialect is FirebirdDialect )
91+ Assert . Ignore ( "Firebird driver does not support distributed transactions" ) ;
92+
8993 var tx = new TransactionScope ( ) ;
9094 using ( ISession s = sessions . OpenSession ( ) )
9195 {
@@ -109,6 +113,9 @@ public void Can_roll_back_transaction()
109113 [ Description ( "Another action inside the transaction do the rollBack outside nh-session-scope." ) ]
110114 public void RollbackOutsideNh ( )
111115 {
116+ if ( Dialect is FirebirdDialect )
117+ Assert . Ignore ( "Firebird driver does not support distributed transactions" ) ;
118+
112119 try
113120 {
114121 using ( var txscope = new TransactionScope ( ) )
@@ -136,6 +143,9 @@ public void RollbackOutsideNh()
136143 [ Description ( "rollback inside nh-session-scope should not commit save and the transaction should be aborted." ) ]
137144 public void TransactionInsertWithRollBackTask ( )
138145 {
146+ if ( Dialect is FirebirdDialect )
147+ Assert . Ignore ( "Firebird driver does not support distributed transactions" ) ;
148+
139149 try
140150 {
141151 using ( var txscope = new TransactionScope ( ) )
You can’t perform that action at this time.
0 commit comments