From 716de8dff46ed7ae3c6ebb7a6124db741ba7c018 Mon Sep 17 00:00:00 2001 From: sikehish Date: Mon, 28 Oct 2024 23:50:00 +0530 Subject: [PATCH] Increase timeouts in Test_Mock_Called_blocks to reduce flakiness in CI --- mock/mock_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/mock/mock_test.go b/mock/mock_test.go index d28686700..5aab204b9 100644 --- a/mock/mock_test.go +++ b/mock/mock_test.go @@ -1256,7 +1256,7 @@ func Test_Mock_Called_blocks(t *testing.T) { var mockedService = new(TestExampleImplementation) - mockedService.Mock.On("asyncCall", 1, 2, 3).Return(5, "6", true).After(2 * time.Millisecond) + mockedService.Mock.On("asyncCall", 1, 2, 3).Return(5, "6", true).After(20 * time.Millisecond) ch := make(chan Arguments) @@ -1265,7 +1265,7 @@ func Test_Mock_Called_blocks(t *testing.T) { select { case <-ch: t.Fatal("should have waited") - case <-time.After(1 * time.Millisecond): + case <-time.After(10 * time.Millisecond): } returnArguments := <-ch