[bugfix] increases sleep time before check in throttle test, to give more leeway (#2482)

This commit is contained in:
kim 2024-01-03 10:27:55 +00:00 committed by GitHub
parent a15415b1a2
commit 31481fad35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -129,7 +129,7 @@ func testThrottlingMiddleware(t *testing.T, cpuMulti int, retryAfter time.Durati
// Pass req through
// engine handler.
go e.ServeHTTP(rw, r)
time.Sleep(time.Millisecond)
time.Sleep(5 * time.Millisecond)
// Get http result.
res := rw.Result()