diff options
author | Matthew Holt <mholt@users.noreply.github.com> | 2022-10-05 11:40:41 -0600 |
---|---|---|
committer | Matthew Holt <mholt@users.noreply.github.com> | 2022-10-05 11:40:41 -0600 |
commit | e07a267276b9c00181c979ec65f26e25b8325beb (patch) | |
tree | 8dfdb0a7ab5b3ba5b91f1a1565b9fe98e2194612 /modules | |
parent | e4fac1294f3fcedea5bc94668d56ec64e651bc98 (diff) |
caddytest: Revise sleep durations
Attempt to reduce flakiness a bit more
Test suite needs to be rewritten.
Diffstat (limited to 'modules')
-rw-r--r-- | modules/caddyhttp/reverseproxy/fastcgi/client_test.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/caddyhttp/reverseproxy/fastcgi/client_test.go b/modules/caddyhttp/reverseproxy/fastcgi/client_test.go index 78e5713..29bb578 100644 --- a/modules/caddyhttp/reverseproxy/fastcgi/client_test.go +++ b/modules/caddyhttp/reverseproxy/fastcgi/client_test.go @@ -171,7 +171,7 @@ func sendFcgi(reqType int, fcgiParams map[string]string, data []byte, posts map[ log.Println("c: send data length ≈", length, string(content)) conn.Close() - time.Sleep(1 * time.Second) + time.Sleep(250 * time.Millisecond) if bytes.Contains(content, []byte("FAILED")) { globalt.Error("Server return failed message") @@ -230,7 +230,7 @@ func DisabledTest(t *testing.T) { } }() - time.Sleep(1 * time.Second) + time.Sleep(250 * time.Millisecond) // init fcgiParams := make(map[string]string) |