We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In #2255, we rate-limited initial genesis block downloads, and added a test for the rate limit.
But we can make the test faster using tokio::time::advance. This speed up will let us test multiple retries.
tokio::time::advance
https://docs.rs/tokio/1.6.1/tokio/time/fn.advance.html
pause
advance
request_genesis_is_rate_limited
We could leave the test as it is, and accept the slower time. (And smaller coverage.)
We also want to replace the atomics in the test #2268
The text was updated successfully, but these errors were encountered:
This cleanup is not required.
Sorry, something went wrong.
No branches or pull requests
Motivation
In #2255, we rate-limited initial genesis block downloads, and added a test for the rate limit.
But we can make the test faster using
tokio::time::advance
. This speed up will let us test multiple retries.API Documentation
https://docs.rs/tokio/1.6.1/tokio/time/fn.advance.html
Solution
pause
andadvance
to change tokio's internal time in therequest_genesis_is_rate_limited
testAlternatives
We could leave the test as it is, and accept the slower time. (And smaller coverage.)
Related Work
We also want to replace the atomics in the test #2268
The text was updated successfully, but these errors were encountered: