Skip to content

Commit 4cd5676

Browse files
Fix typos
1 parent d955015 commit 4cd5676

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

src/NHibernate.Test/Async/SystemTransactions/SystemTransactionFixture.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -532,8 +532,9 @@ public async Task EnforceConnectionUsageRulesOnTransactionCompletionAsync()
532532
public async Task SupportsTransactionTimeoutAsync()
533533
{
534534
Assume.That(TestDialect.SupportsTransactionScopeTimeouts, Is.True, "The tested dialect is not supported for transaction scope timeouts.");
535-
// Other special cases: ODBC succeeds this test only with transaction.ignore_session_synchronization_failures enabled.
536-
// It freezes the session during the transaction cancellation. To avoid the test to be very long, the synchronization
535+
// Other special cases: ODBC and SAP SQL Anywhere succeed this test only with transaction.ignore_session_synchronization_failures
536+
// enabled.
537+
// They freeze the session during the transaction cancellation. To avoid the test to be very long, the synchronization
537538
// lock timeout should be lowered too.
538539

539540
// Test case adapted from https://github.com/kaksmet/NHibBugRepro

src/NHibernate.Test/SystemTransactions/SystemTransactionFixture.cs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -650,8 +650,9 @@ public void CanUseSessionWithManyDependentTransaction(bool explicitFlush)
650650
public void SupportsTransactionTimeout()
651651
{
652652
Assume.That(TestDialect.SupportsTransactionScopeTimeouts, Is.True, "The tested dialect is not supported for transaction scope timeouts.");
653-
// Other special cases: ODBC succeeds this test only with transaction.ignore_session_synchronization_failures enabled.
654-
// It freezes the session during the transaction cancellation. To avoid the test to be very long, the synchronization
653+
// Other special cases: ODBC and SAP SQL Anywhere succeed this test only with transaction.ignore_session_synchronization_failures
654+
// enabled.
655+
// They freeze the session during the transaction cancellation. To avoid the test to be very long, the synchronization
655656
// lock timeout should be lowered too.
656657

657658
// Test case adapted from https://github.com/kaksmet/NHibBugRepro

src/NHibernate/Transaction/AdoNetWithSystemTransactionFactory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public override void Configure(IDictionary<string, string> props)
4242
throw new HibernateException(
4343
$"Invalid {Cfg.Environment.SystemTransactionCompletionLockTimeout} value: {SystemTransactionCompletionLockTimeout}. It can not be less than -1.");
4444
IgnoreSessionSynchronizationFailuresOnSystemTransaction =
45-
PropertiesHelper.GetBoolean(Cfg.Environment.IgnoreSessionSynchronizationFailuresOnSystemTransaction, props, true);
45+
PropertiesHelper.GetBoolean(Cfg.Environment.IgnoreSessionSynchronizationFailuresOnSystemTransaction, props, false);
4646
UseConnectionOnSystemTransactionPrepare =
4747
PropertiesHelper.GetBoolean(Cfg.Environment.UseConnectionOnSystemTransactionPrepare, props, true);
4848
}

0 commit comments

Comments
 (0)