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 fbd3968 commit 66389d3Copy full SHA for 66389d3
pkg/queue/health/probe_test.go
@@ -126,13 +126,14 @@ func TestHTTPSchemeProbeSuccess(t *testing.T) {
126
}
127
128
func TestHTTPProbeTimeoutFailure(t *testing.T) {
129
+ timeout := 10 * time.Millisecond
130
server := newTestServer(t, func(w http.ResponseWriter, r *http.Request) {
- time.Sleep(2 * time.Second)
131
+ time.Sleep(timeout * 5)
132
w.WriteHeader(http.StatusOK)
133
})
134
135
config := HTTPProbeConfigOptions{
- Timeout: time.Second,
136
+ Timeout: timeout,
137
HTTPGetAction: newHTTPGetAction(t, server.URL),
138
139
if err := HTTPProbe(config); err == nil {
0 commit comments