Skip to content

Commit 24d7c09

Browse files
authored
test: increase flush timeout in CI tests (#700)
1 parent 9f38c57 commit 24d7c09

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

transport_test.go

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,12 @@ func TestHTTPTransport(t *testing.T) {
433433
transportMustFlush := func(t *testing.T, id string) {
434434
t.Helper()
435435

436-
ok := transport.Flush(500 * time.Millisecond)
436+
timeout := 100 * time.Millisecond
437+
if isCI() {
438+
// CI is very overloaded so we need to allow for a long wait time.
439+
timeout = 5 * time.Second
440+
}
441+
ok := transport.Flush(timeout)
437442
if !ok {
438443
t.Fatalf("[CLIENT] {%.4s} Flush() timed out", id)
439444
}

0 commit comments

Comments
 (0)