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 8
8
using log4net . Repository . Hierarchy ;
9
9
using NHibernate . Cfg ;
10
10
using NHibernate . Cfg . MappingSchema ;
11
+ using NHibernate . Dialect ;
11
12
using NHibernate . Tool . hbm2ddl ;
12
13
using NUnit . Framework ;
13
14
@@ -86,6 +87,9 @@ public void WillNotCrashOnDtcPrepareFailure()
86
87
[ Test ]
87
88
public void Can_roll_back_transaction ( )
88
89
{
90
+ if ( Dialect is FirebirdDialect )
91
+ Assert . Ignore ( "Firebird driver does not support distributed transactions" ) ;
92
+
89
93
var tx = new TransactionScope ( ) ;
90
94
using ( ISession s = sessions . OpenSession ( ) )
91
95
{
@@ -109,6 +113,9 @@ public void Can_roll_back_transaction()
109
113
[ Description ( "Another action inside the transaction do the rollBack outside nh-session-scope." ) ]
110
114
public void RollbackOutsideNh ( )
111
115
{
116
+ if ( Dialect is FirebirdDialect )
117
+ Assert . Ignore ( "Firebird driver does not support distributed transactions" ) ;
118
+
112
119
try
113
120
{
114
121
using ( var txscope = new TransactionScope ( ) )
@@ -136,6 +143,9 @@ public void RollbackOutsideNh()
136
143
[ Description ( "rollback inside nh-session-scope should not commit save and the transaction should be aborted." ) ]
137
144
public void TransactionInsertWithRollBackTask ( )
138
145
{
146
+ if ( Dialect is FirebirdDialect )
147
+ Assert . Ignore ( "Firebird driver does not support distributed transactions" ) ;
148
+
139
149
try
140
150
{
141
151
using ( var txscope = new TransactionScope ( ) )
You can’t perform that action at this time.
0 commit comments