mirror of
https://github.com/docker/compose.git
synced 2025-07-27 15:44:08 +02:00
Increase E2E test timeouts to reduce flakiness
Signed-off-by: Laura Brehm <laurabrehm@hey.com>
This commit is contained in:
parent
8714f983ac
commit
118b4f07e5
@ -146,7 +146,7 @@ func TestAttachRestart(t *testing.T) {
|
|||||||
return strings.Count(res.Stdout(),
|
return strings.Count(res.Stdout(),
|
||||||
"failing-1 exited with code 1") == 3, fmt.Sprintf("'failing-1 exited with code 1' not found 3 times in : \n%s\n",
|
"failing-1 exited with code 1") == 3, fmt.Sprintf("'failing-1 exited with code 1' not found 3 times in : \n%s\n",
|
||||||
debug)
|
debug)
|
||||||
}, 3*time.Minute, 2*time.Second)
|
}, 4*time.Minute, 2*time.Second)
|
||||||
|
|
||||||
assert.Equal(t, strings.Count(res.Stdout(), "failing-1 | world"), 3, res.Combined())
|
assert.Equal(t, strings.Count(res.Stdout(), "failing-1 | world"), 3, res.Combined())
|
||||||
}
|
}
|
||||||
|
@ -46,7 +46,7 @@ func TestPause(t *testing.T) {
|
|||||||
"b": urlForService(t, cli, "b", 80),
|
"b": urlForService(t, cli, "b", 80),
|
||||||
}
|
}
|
||||||
for _, url := range urls {
|
for _, url := range urls {
|
||||||
HTTPGetWithRetry(t, url, http.StatusOK, 50*time.Millisecond, 5*time.Second)
|
HTTPGetWithRetry(t, url, http.StatusOK, 50*time.Millisecond, 20*time.Second)
|
||||||
}
|
}
|
||||||
|
|
||||||
// pause a and verify that it can no longer be hit but b still can
|
// pause a and verify that it can no longer be hit but b still can
|
||||||
|
Loading…
x
Reference in New Issue
Block a user