Testing with concurrent rate limiters #5348
Unanswered
wheresrobert
asked this question in
Q&A
Replies: 1 comment 1 reply
-
I have no suggestions beyond what is in the wiki: https://github.com/mperham/sidekiq/wiki/Ent-Rate-Limiting#testing |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
What is the recommended way to test code that uses a concurrent rate limiter?
Since
Sidekiq::Testing.inline!
runs the jobs immediately, the rate limit is hit immediately, throwing an exception, which then fails the test.How do I work around this?
Beta Was this translation helpful? Give feedback.
All reactions