Skip to content

Commit 716de8d

Browse files
committed
Increase timeouts in Test_Mock_Called_blocks to reduce flakiness in CI
1 parent 118fb83 commit 716de8d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

mock/mock_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,7 +1256,7 @@ func Test_Mock_Called_blocks(t *testing.T) {
12561256

12571257
var mockedService = new(TestExampleImplementation)
12581258

1259-
mockedService.Mock.On("asyncCall", 1, 2, 3).Return(5, "6", true).After(2 * time.Millisecond)
1259+
mockedService.Mock.On("asyncCall", 1, 2, 3).Return(5, "6", true).After(20 * time.Millisecond)
12601260

12611261
ch := make(chan Arguments)
12621262

@@ -1265,7 +1265,7 @@ func Test_Mock_Called_blocks(t *testing.T) {
12651265
select {
12661266
case <-ch:
12671267
t.Fatal("should have waited")
1268-
case <-time.After(1 * time.Millisecond):
1268+
case <-time.After(10 * time.Millisecond):
12691269
}
12701270

12711271
returnArguments := <-ch

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy