Skip to content

test(sync-v1): Reset rate limit hit counter after simulation #812

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

Merged
merged 1 commit into from
Oct 17, 2023

Conversation

msbrogli
Copy link
Member

Motivation

Fix flaky test FAILED tests/p2p/test_sync_rate_limiter.py::SyncV1RandomSimulatorTestCase::test_sync_rate_limiter - twisted.trial.unittest.FailTest: 7 != 8.

This test fails when there's a pending call to send_tips() after simulation.

Acceptance Criteria

  1. Reset rate limit hit counter after simulation.

Checklist

  • If you are requesting a merge into master, confirm this code is production-ready and can be included in future releases as soon as it gets merged

@msbrogli msbrogli requested a review from jansegre as a code owner October 17, 2023 18:27
@msbrogli msbrogli self-assigned this Oct 17, 2023
@msbrogli msbrogli force-pushed the test/sync-v1-rate-limit branch from 882ff50 to 185e114 Compare October 17, 2023 18:28
@msbrogli msbrogli force-pushed the test/sync-v1-rate-limit branch from 185e114 to 889bf5d Compare October 17, 2023 18:32
@msbrogli msbrogli merged commit 889bf5d into master Oct 17, 2023
@msbrogli msbrogli deleted the test/sync-v1-rate-limit branch October 17, 2023 18:32
This was referenced Oct 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants