Fast and extensible multi-platform HTTP/1-2-3 web server with automatic HTTPS
Mirrored from https://github.com/Slazee/caddy.git
Synced Nov 13, 09:15 UTC
caddytest: Increased sleep between retries to reduce flakey tests in CI (#5160)
* Incresed sleep between retries to reduce flakey tests in CI * Also changed wait time for admin * Modified time to make it more reliable Co-authored-by: Mohammed Al Sahaf <msaa1990@gmail.com>
Benjamin Chalmers committed
Oct 27, 2022 at 23:12 UTC
1fa4cb7ba15b2e3166a30258fd99e13eac5fdd0e
1 file changed
+2
-2
caddytest/caddytest.go
+2
-2
@@ -218,7 +218,7 @@ func (tc *Tester) ensureConfigRunning(rawConfig string, configType string) error
218
if reflect.DeepEqual(expected, fetchConfig(client)) {
219
return nil
220
}
221
- time.Sleep(10 * time.Millisecond)
221
+ time.Sleep(1 * time.Second)
222
}
223
tc.t.Errorf("POSTed configuration isn't active")
224
return errors.New("EnsureConfigRunning: POSTed configuration isn't active")
@@ -244,7 +244,7 @@ func validateTestPrerequisites() error {
244
245
// wait for caddy to start serving the initial config
246
for retries := 10; retries > 0 && isCaddyAdminRunning() != nil; retries-- {
247
- time.Sleep(10 * time.Millisecond)
247
+ time.Sleep(1 * time.Second)
248
}
249
}
250