Skip to content

Commit

Permalink
fix next test
Browse files Browse the repository at this point in the history
  • Loading branch information
jakubch1 committed Jun 16, 2020
1 parent 9376adb commit be9537b
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -452,14 +452,15 @@ public async Task FinalizeMultiTestRunAsync_ShouldReturnNull_IfOperationCancelle
{
for (int i = 0; i < 1000; ++i)
{
Task.Delay(100);
Task.Delay(100).Wait();
Console.WriteLine($"Iteration: {i}");

if (cancellation.IsCancellationRequested) break;
cancellation.ThrowIfCancellationRequested();

if (i == 3)
{
{
cancellationTokenSource.Cancel();
Task.Delay(500).Wait();
}
}

Expand Down

0 comments on commit be9537b

Please sign in to comment.