Skip to content

Commit 66389d3

Browse files
Cut down queue health tests from 2s to basically nothing (#10556)
1 parent fbd3968 commit 66389d3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pkg/queue/health/probe_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,13 +126,14 @@ func TestHTTPSchemeProbeSuccess(t *testing.T) {
126126
}
127127

128128
func TestHTTPProbeTimeoutFailure(t *testing.T) {
129+
timeout := 10 * time.Millisecond
129130
server := newTestServer(t, func(w http.ResponseWriter, r *http.Request) {
130-
time.Sleep(2 * time.Second)
131+
time.Sleep(timeout * 5)
131132
w.WriteHeader(http.StatusOK)
132133
})
133134

134135
config := HTTPProbeConfigOptions{
135-
Timeout: time.Second,
136+
Timeout: timeout,
136137
HTTPGetAction: newHTTPGetAction(t, server.URL),
137138
}
138139
if err := HTTPProbe(config); err == nil {

0 commit comments

Comments
 (0)