Skip to content

Commit c9c1f37

Browse files
committed
Improve test stability (JoinAsyncShouldCompleteWithoutUIThreadAfterCancellation)
1 parent 887c2df commit c9c1f37

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/Microsoft.VisualStudio.Threading.Tests/JoinableTaskTests.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3762,7 +3762,7 @@ public void JoinAsyncShouldCompleteWithoutUIThreadAfterCancellation()
37623762
// We expect to be able to block on the UI thread and the Task complete.
37633763
// In completing, it will throw a TaskCanceledException, wrapped by an
37643764
// AggregateException. If it 'hangs', it will timeout, returning false.
3765-
Assert.Throws<AggregateException>(() => joinTask.Wait(AsyncDelay));
3765+
Assert.Throws<AggregateException>(() => joinTask.Wait(UnexpectedTimeout));
37663766
}
37673767

37683768
[Fact]

0 commit comments

Comments
 (0)