Skip to content
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(test): Wait for a few seconds before retrying opening a dlc channel after rejection #2105

Merged
merged 1 commit into from
Feb 28, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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