Skip to content

Commit

Permalink
fix(test): Wait for a few seconds before retrying opening a dlc chann…
Browse files Browse the repository at this point in the history
…el after rejection
  • Loading branch information
holzeis committed Feb 27, 2024
1 parent 53f3618 commit 48b3e67
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/tests-e2e/tests/e2e_reject_offer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ use native::trade::order::api::NewOrder;
use native::trade::order::api::OrderType;
use native::trade::order::OrderState;
use native::trade::position::PositionState;
use std::time::Duration;
use tests_e2e::app::submit_channel_opening_order;
use tests_e2e::setup::TestSetup;
use tests_e2e::wait_until;
Expand Down Expand Up @@ -65,6 +66,9 @@ async fn reject_offer() {
stable: false,
};

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

// Assert that the order was posted
Expand Down

0 comments on commit 48b3e67

Please sign in to comment.