Skip to content

Commit 326f920

Browse files
committed
Remove workarounds
1 parent 0a788b9 commit 326f920

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/SqlNotificationTest/SqlNotificationTest.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -244,7 +244,7 @@ public void Test_SingleDependency_Timeout()
244244
const int SqlDependencyTimerResolution = 15; // seconds
245245
const int testTimeSeconds = SqlDependencyTimerResolution * 3 - 5;
246246
const int minTimeoutEventInterval = testTimeSeconds - 1;
247-
const int maxTimeoutEventInterval = testTimeSeconds + SqlDependencyTimerResolution + 1 + 15; // TEMPORARILY ADD 15 SECONDS TO ALLOW FOR TIMEOUT TO BE RECEIVED AS A TEST
247+
const int maxTimeoutEventInterval = testTimeSeconds + SqlDependencyTimerResolution + 1;
248248

249249
// create a new event every time to avoid mixing notification callbacks
250250
ManualResetEventSlim notificationReceived = new ManualResetEventSlim(false);

src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/TransactionTest/TransactionEnlistmentTest.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ public static void TestManualEnlistment_Enlist_TxScopeComplete()
5050
[ConditionalFact(typeof(DataTestUtility), nameof(DataTestUtility.AreConnStringsSetup), nameof(DataTestUtility.IsSupportingDistributedTransactions))]
5151
public static void TestEnlistmentPrepare_TxScopeComplete()
5252
{
53+
TransactionManager.ImplicitDistributedTransactions = true;
5354
Assert.Throws<TransactionAbortedException>( () =>
5455
{
5556
using TransactionScope txScope = new(TransactionScopeOption.RequiresNew, new TransactionOptions()

0 commit comments

Comments
 (0)