Skip to content

Commit

Permalink
Merge pull request fedimint#6405 from dpc/24-11-19-ci-flake
Browse files Browse the repository at this point in the history
fix(test): flaky on_chain_peg_in_and_peg_out_happy_case test
  • Loading branch information
bradleystachurski authored Nov 20, 2024
2 parents c9a1daf + fa17a7f commit d935f4b
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/fedimint-wallet-tests/tests/tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -229,14 +229,15 @@ async fn on_chain_peg_in_and_peg_out_happy_case() -> anyhow::Result<()> {
// just poll more often in tests?)
let await_update_while_rechecking = async {
loop {
wallet_module
.recheck_pegin_address_by_op_id(op)
.await
.expect("Operation exists");
select! {
update = deposit_updates.next() => {
break update;
},
_ = sleep_in_test("Waiting for address recheck", Duration::from_secs(1)) => {
wallet_module.recheck_pegin_address_by_op_id(op).await
.expect("Operation exists");
}
_ = sleep_in_test("Waiting for address recheck", Duration::from_millis(100)) => { }
}
}
};
Expand Down

0 comments on commit d935f4b

Please sign in to comment.