diff --git a/src/DistributedLock.Tests/AbstractTestCases/Data/ExternalConnectionOrTransactionStrategyTestCases.cs b/src/DistributedLock.Tests/AbstractTestCases/Data/ExternalConnectionOrTransactionStrategyTestCases.cs index ad6c4fe..538c04b 100644 --- a/src/DistributedLock.Tests/AbstractTestCases/Data/ExternalConnectionOrTransactionStrategyTestCases.cs +++ b/src/DistributedLock.Tests/AbstractTestCases/Data/ExternalConnectionOrTransactionStrategyTestCases.cs @@ -25,7 +25,7 @@ public void TestDeadlockDetection() const string LockName1 = nameof(TestDeadlockDetection) + "_1", LockName2 = nameof(TestDeadlockDetection) + "_2"; - Task RunDeadlock(bool isFirst) + Task RunDeadlockAsync(bool isFirst) { this._lockProvider.Strategy.StartAmbient(); var lock1 = this._lockProvider.CreateLock(isFirst ? LockName1 : LockName2); @@ -40,7 +40,7 @@ Task RunDeadlock(bool isFirst) }); } - var tasks = new[] { RunDeadlock(isFirst: true), RunDeadlock(isFirst: false) }; + var tasks = new[] { RunDeadlockAsync(isFirst: true), RunDeadlockAsync(isFirst: false) }; Task.WhenAll(tasks).ContinueWith(_ => { }).Wait(TimeSpan.FromSeconds(15)).ShouldEqual(true, this.GetType().Name);