Skip to content

Commit

Permalink
test: increase flush timeout in CI tests (#700)
Browse files Browse the repository at this point in the history
  • Loading branch information
vaind committed Aug 14, 2023
1 parent 9f38c57 commit 24d7c09
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion transport_test.go
Expand Up @@ -433,7 +433,12 @@ func TestHTTPTransport(t *testing.T) {
transportMustFlush := func(t *testing.T, id string) {
t.Helper()

ok := transport.Flush(500 * time.Millisecond)
timeout := 100 * time.Millisecond
if isCI() {
// CI is very overloaded so we need to allow for a long wait time.
timeout = 5 * time.Second
}
ok := transport.Flush(timeout)
if !ok {
t.Fatalf("[CLIENT] {%.4s} Flush() timed out", id)
}
Expand Down

0 comments on commit 24d7c09

Please sign in to comment.