mirror of
https://github.com/stretchr/testify.git
synced 2025-05-31 11:42:44 +00:00
Merge pull request #1667 from sikehish/flaky
Increase timeouts in Test_Mock_Called_blocks to reduce flakiness in CI
This commit is contained in:
commit
07bac606be
@ -1256,7 +1256,7 @@ func Test_Mock_Called_blocks(t *testing.T) {
|
|||||||
|
|
||||||
var mockedService = new(TestExampleImplementation)
|
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)
|
ch := make(chan Arguments)
|
||||||
|
|
||||||
@ -1265,7 +1265,7 @@ func Test_Mock_Called_blocks(t *testing.T) {
|
|||||||
select {
|
select {
|
||||||
case <-ch:
|
case <-ch:
|
||||||
t.Fatal("should have waited")
|
t.Fatal("should have waited")
|
||||||
case <-time.After(1 * time.Millisecond):
|
case <-time.After(10 * time.Millisecond):
|
||||||
}
|
}
|
||||||
|
|
||||||
returnArguments := <-ch
|
returnArguments := <-ch
|
||||||
|
Loading…
x
Reference in New Issue
Block a user