Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix an issue with maxSlack boundary updates. #124

Merged
merged 1 commit into from
Mar 4, 2024
Merged

Conversation

rabbbit
Copy link
Contributor

@rabbbit rabbbit commented Mar 4, 2024

Fixes #119
The solution is a copy from #120, but follows the testing framework that we have - I did not want us to have a real Sleep in tests.

I'm not exactly thrilled by the testing setup (especially the milliseconds) or the clock itself, but I'm not willing to totally give up on it like #120 proposes.
I also wanted ALL implementations of the ratelimiter to be tested, not just the currently selected.

Might follow up with some testing cleanups and/or clock migration.

Fixes #119
The solution is a copy from #120, but follows the testing framework
that we have - I did not want us to have a real `Sleep` in tests.

I'm not exactly thrilled by the testing setup (especially the
milliseconds) or the clock itself, but I'm not willing to totally give
up on it like #120 proposes.
I also wanted ALL implementations of the ratelimiter to be tested,
not just the currently selected.

Might follow up with some testing cleanups and/or clock migration.
Copy link

codecov bot commented Mar 4, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 100.00%. Comparing base (60908a3) to head (b409a80).

Additional details and impacted files
@@            Coverage Diff            @@
##              main      #124   +/-   ##
=========================================
  Coverage   100.00%   100.00%           
=========================================
  Files            4         4           
  Lines          159       159           
=========================================
  Hits           159       159           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@rabbbit rabbbit merged commit 9364ca3 into main Mar 4, 2024
8 checks passed
@rabbbit rabbbit deleted the pawel/bugMaxSlack branch March 4, 2024 15:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Take always return without block if it enters the case branch
2 participants