Skip to content

Commit

Permalink
Increase delay in test for GH Actions CTR
Browse files Browse the repository at this point in the history
The test seems to be flaky on GH Actions which is probably caused by the
environment simply being too slow to send the 3 expected messages in
200 ms in the background.
So, I'm doubling the timeout to 400 ms as a first step.
  • Loading branch information
FlorianHockmann committed May 15, 2024
1 parent cd5aa3c commit 1daf955
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -250,7 +250,7 @@ public async Task ShouldContinueSubmittingOtherMessagesIfOneIsCancelled()

await Assert.ThrowsAsync<TaskCanceledException>(async () => await taskToCancel);
Assert.True(taskToCancel.IsCanceled);
await Task.Delay(TimeSpan.FromMilliseconds(200)); // wait a bit to let the messages being sent
await Task.Delay(TimeSpan.FromMilliseconds(400)); // wait a bit to let the messages being sent
await mockedClientWebSocket.Received(3).SendAsync(Arg.Any<ArraySegment<byte>>(),
Arg.Any<WebSocketMessageType>(), Arg.Any<bool>(), Arg.Any<CancellationToken>());
}
Expand Down

0 comments on commit 1daf955

Please sign in to comment.