Skip to content

Commit 14a13b6

Browse files
committed
ignore firebird in dtc tests
1 parent b434f83 commit 14a13b6

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/NHibernate.Test/NHSpecificTest/DtcFailures/DtcFailuresFixture.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
using log4net.Repository.Hierarchy;
99
using NHibernate.Cfg;
1010
using NHibernate.Cfg.MappingSchema;
11+
using NHibernate.Dialect;
1112
using NHibernate.Tool.hbm2ddl;
1213
using 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())

0 commit comments

Comments
 (0)