From 1daf955d0b4dc0e746fce3a3c81a9d6c4c63cac6 Mon Sep 17 00:00:00 2001 From: Florian Hockmann Date: Wed, 15 May 2024 16:00:32 +0200 Subject: [PATCH] Increase delay in test for GH Actions CTR 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. --- .../test/Gremlin.Net.UnitTest/Driver/ConnectionTests.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Driver/ConnectionTests.cs b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Driver/ConnectionTests.cs index ef71d235d40..3ca81d4f7a7 100644 --- a/gremlin-dotnet/test/Gremlin.Net.UnitTest/Driver/ConnectionTests.cs +++ b/gremlin-dotnet/test/Gremlin.Net.UnitTest/Driver/ConnectionTests.cs @@ -250,7 +250,7 @@ public async Task ShouldContinueSubmittingOtherMessagesIfOneIsCancelled() await Assert.ThrowsAsync(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>(), Arg.Any(), Arg.Any(), Arg.Any()); }