summaryrefslogtreecommitdiff
path: root/internal/middleware/throttling_test.go
diff options
context:
space:
mode:
authorLibravatar kim <89579420+NyaaaWhatsUpDoc@users.noreply.github.com>2024-01-03 10:27:55 +0000
committerLibravatar GitHub <noreply@github.com>2024-01-03 10:27:55 +0000
commit31481fad359f1c1acf8c746272e0fdd376a0ffbc (patch)
tree46b83da658744a5b67c7be37b6914acd35d62844 /internal/middleware/throttling_test.go
parent[docs] Describe how to block IPs using a firewall (#2459) (diff)
downloadgotosocial-31481fad359f1c1acf8c746272e0fdd376a0ffbc.tar.xz
[bugfix] increases sleep time before check in throttle test, to give more leeway (#2482)
Diffstat (limited to 'internal/middleware/throttling_test.go')
-rw-r--r--internal/middleware/throttling_test.go2
1 files changed, 1 insertions, 1 deletions
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()