Skip to content

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

Merged
msbrogli merged 1 commit intomasterfrom
test/sync-v1-rate-limit
Oct 17, 2023
Merged

test(sync-v1): Reset rate limit hit counter after simulation#812
msbrogli merged 1 commit intomasterfrom
test/sync-v1-rate-limit

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