-
Notifications
You must be signed in to change notification settings - Fork 211
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: poll in reconnect test #4220
Conversation
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #4220 +/- ##
==========================================
+ Coverage 57.94% 57.99% +0.05%
==========================================
Files 197 197
Lines 43413 43414 +1
==========================================
+ Hits 25154 25177 +23
+ Misses 18259 18237 -22 ☔ View full report in Codecov by Sentry. |
devimint/src/tests.rs
Outdated
@@ -1558,7 +1558,11 @@ pub async fn reconnect_test(dev_fed: DevFed, process_mgr: &ProcessManager) -> Re | |||
|
|||
fed.start_server(process_mgr, 0).await?; | |||
fed.mine_then_wait_blocks_sync(100).await?; | |||
fed.await_all_peers().await?; | |||
poll("federation back online", None, || async { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thinking aloud: should this be just part of await_all_peers
? Otherwise won't we hit it soon someplace else using it?
I guess if someone is using await_all_peers
... they can kind of expect some peers to be down, and don't want this function to fail because of it?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an excellent observation 🙂
77dd7b5
to
f3ca1cd
Compare
Head branch was pushed to by a user without write access
f3ca1cd
to
a3d82e9
Compare
reconnect_test
is flakey, which can likely be resolved by polling.https://github.com/fedimint/fedimint/actions/runs/7747755393/job/21128923550#step:5:1433