You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
=== RUN TestRateLimiter
i:0
i:1
/home/remek/go/src/github.com/airmap/platform/airmap/util/ratelimtter_test.go:16:
Error Trace: ratelimtter_test.go:16
Error: Should be true
Test: TestRateLimiter
--- FAIL: TestRateLimiter (0.01s)
FAIL
FAIL github.com/airmap/platform/airmap/util 0.013s
The documentation says: "Burst is the maximum number of tokens that can be consumed in a single call to Allow, Reserve, or Wait, so higher Burst values allow more events to happen at once."
As you can see; at no point I call Allow with anything different than 1.
The text was updated successfully, but these errors were encountered:
Unlike many projects, the Go project does not use GitHub Issues for general discussion or asking questions. GitHub Issues are used for tracking bugs and proposals only.
What version of Go are you using (
go version
)?Does this issue reproduce with the latest release?
I don't know
x/time at:
What operating system and processor architecture are you using (
go env
)?go env
OutputWhat did you do?
wrote this test:
What did you expect to see?
The test to pass.
What did you see instead?
The test failed on the 2nd iteration
The documentation says: "Burst is the maximum number of tokens that can be consumed in a single call to Allow, Reserve, or Wait, so higher Burst values allow more events to happen at once."
As you can see; at no point I call Allow with anything different than 1.
The text was updated successfully, but these errors were encountered: