We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f38c57 commit 24d7c09Copy full SHA for 24d7c09
transport_test.go
@@ -433,7 +433,12 @@ func TestHTTPTransport(t *testing.T) {
433
transportMustFlush := func(t *testing.T, id string) {
434
t.Helper()
435
436
- ok := transport.Flush(500 * time.Millisecond)
+ 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)
442
if !ok {
443
t.Fatalf("[CLIENT] {%.4s} Flush() timed out", id)
444
}
0 commit comments