summaryrefslogtreecommitdiff
path: root/caddytest/integration
diff options
context:
space:
mode:
authorMatthew Holt <mholt@users.noreply.github.com>2022-10-05 11:40:41 -0600
committerMatthew Holt <mholt@users.noreply.github.com>2022-10-05 11:40:41 -0600
commite07a267276b9c00181c979ec65f26e25b8325beb (patch)
tree8dfdb0a7ab5b3ba5b91f1a1565b9fe98e2194612 /caddytest/integration
parente4fac1294f3fcedea5bc94668d56ec64e651bc98 (diff)
caddytest: Revise sleep durations
Attempt to reduce flakiness a bit more Test suite needs to be rewritten.
Diffstat (limited to 'caddytest/integration')
-rw-r--r--caddytest/integration/reverseproxy_test.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/caddytest/integration/reverseproxy_test.go b/caddytest/integration/reverseproxy_test.go
index 81aec71..049c7fd 100644
--- a/caddytest/integration/reverseproxy_test.go
+++ b/caddytest/integration/reverseproxy_test.go
@@ -8,6 +8,7 @@ import (
"runtime"
"strings"
"testing"
+ "time"
"github.com/caddyserver/caddy/v2/caddytest"
)
@@ -441,6 +442,7 @@ func TestReverseProxyHealthCheck(t *testing.T) {
}
`, "caddyfile")
+ time.Sleep(100 * time.Millisecond) // TODO: for some reason this test seems particularly flaky, getting 503 when it should be 200, unless we wait
tester.AssertGetResponse("http://localhost:9080/", 200, "Hello, World!")
}