We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a958ff1 commit 37f3572Copy full SHA for 37f3572
src/NHibernate.Test/SystemTransactions/SystemTransactionFixture.cs
@@ -643,6 +643,26 @@ public void CanUseSessionWithManyDependentTransaction(bool explicitFlush)
643
}
644
645
646
+ [Test]
647
+ public void SupportsTransactionTimeout()
648
+ {
649
+ // Test case adapted from https://github.com/kaksmet/NHibBugRepro
650
+ using (var s = OpenSession())
651
+ using (var t = s.BeginTransaction())
652
653
+ for (var i = 0; i < 5000; i++)
654
655
+ var person = new Person();
656
+ s.Save(person);
657
+ }
658
+
659
+ t.Commit();
660
661
662
+ var txOptions = new TransactionOptions { Timeout = TimeSpan.FromMilliseconds(1) };
663
664
665
666
[Theory, Explicit("Bench")]
667
public void BenchTransactionAccess(bool inTransaction)
668
{
0 commit comments