Closed LukeButters closed 11 months ago
[SC-67432]
Sometimes (2 in 1000 runs) this test fails with:
Expected completedTask.Count(x => x != *******) to be less than 400, but found 400.
This might be because:
CancellationTokenSource
this means it might be possible to be in a state in which only:
tasks are cancelled!
Thus 400 tasks (or technically even 401 tasks) could have completed successfully. Explaining the to be less than 400, but found 400. error.
to be less than 400, but found 400.
The fix is to:
This pull request has been linked to Shortcut Story #67432: Flakey test - QueueAndWait_Can_Queue_Dequeue_WhenRequestsAreBeingCancelled.
Background
[SC-67432]
Sometimes (2 in 1000 runs) this test fails with:
This might be because:
CancellationTokenSource
was cancelled.this means it might be possible to be in a state in which only:
tasks are cancelled!
Thus 400 tasks (or technically even 401 tasks) could have completed successfully. Explaining the
to be less than 400, but found 400.
error.The fix is to:
Pre-requisites