From 31481fad359f1c1acf8c746272e0fdd376a0ffbc Mon Sep 17 00:00:00 2001 From: kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com> Date: Wed, 3 Jan 2024 10:27:55 +0000 Subject: [PATCH] [bugfix] increases sleep time before check in throttle test, to give more leeway (#2482) --- internal/middleware/throttling_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/middleware/throttling_test.go b/internal/middleware/throttling_test.go index 2a716ec53..4610ee63b 100644 --- a/internal/middleware/throttling_test.go +++ b/internal/middleware/throttling_test.go @@ -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()