Skip to content

Commit

Permalink
Minor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
madelson committed Mar 26, 2024
1 parent 238c3ec commit 3c0a3fb
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);

Expand Down

0 comments on commit 3c0a3fb

Please sign in to comment.