Skip to content

Commit b2d1d5a

Browse files
authored
Merge pull request #2105 from get10101/fix/flaky-reject-offer-test
fix(test): Wait for a few seconds before retrying opening a dlc channel after rejection
2 parents bf48911 + b92c3e5 commit b2d1d5a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Diff for: crates/tests-e2e/tests/e2e_reject_offer.rs

+4
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ use native::trade::order::api::NewOrder;
77
use native::trade::order::api::OrderType;
88
use native::trade::order::OrderState;
99
use native::trade::position::PositionState;
10+
use std::time::Duration;
1011
use tests_e2e::app::submit_channel_opening_order;
1112
use tests_e2e::setup::TestSetup;
1213
use tests_e2e::wait_until;
@@ -65,6 +66,9 @@ async fn reject_offer() {
6566
stable: false,
6667
};
6768

69+
// give the coordinator some time to process the reject message, before submitting the next
70+
// order.
71+
tokio::time::sleep(Duration::from_secs(5)).await;
6872
submit_channel_opening_order(order.clone(), 0, 0);
6973

7074
// Assert that the order was posted

0 commit comments

Comments
 (0)