mirror of
https://github.com/superseriousbusiness/gotosocial
synced 2025-06-05 21:59:39 +02:00
[bugfix] increases sleep time before check in throttle test, to give more leeway (#2482)
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user