Skip to content

Commit f9da969

Browse files
NH-4015 - dodging a latency issue in dtc tests.
1 parent 2f0fc42 commit f9da969

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -276,6 +276,9 @@ public void CanDeleteItemInDtc()
276276
}
277277
}
278278

279+
// Dodging "latency" due to db still haven't actually committed a distributed tx after scope disposal.
280+
Thread.Sleep(100);
281+
279282
using (var tx = new TransactionScope())
280283
{
281284
using (ISession s = sessions.OpenSession())
@@ -287,6 +290,9 @@ public void CanDeleteItemInDtc()
287290
tx.Complete();
288291
}
289292
}
293+
294+
// Dodging "latency" due to db still haven't actually committed a distributed tx after scope disposal.
295+
Thread.Sleep(100);
290296
}
291297

292298
[Test]

0 commit comments

Comments
 (0)