mirror of
https://github.com/caddyserver/caddy.git
synced 2026-06-07 06:25:24 -04:00
caddytest: Revise sleep durations
Attempt to reduce flakiness a bit more Test suite needs to be rewritten.
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user