Skip to content

Commit

Permalink
Move wait_log_re!(mm_bob, 22., "INFO Listening on") upper.
Browse files Browse the repository at this point in the history
  • Loading branch information
artemii235 committed Feb 5, 2021
1 parent 5ef6942 commit 3460d79
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions mm2src/mm2_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,10 @@ async fn trade_base_rel_electrum(pairs: Vec<(&'static str, &'static str)>) {
log! ({"Bob log path: {}", mm_bob.log_path.display()})
}

// wait until bob starts listening on the p2p port and sleep for 1 second
wait_log_re!(mm_bob, 22., "INFO Listening on");
Timer::sleep(1.).await;

// Both Alice and Bob might try to bind on the "0.0.0.0:47773" DHT port in this test
// (because the local "127.0.0.*:47773" addresses aren't that useful for DHT).
// We want to give Bob a headstart in acquiring the port,
Expand Down Expand Up @@ -795,10 +799,6 @@ async fn trade_base_rel_electrum(pairs: Vec<(&'static str, &'static str)>) {
wait_log_re!(mm_bob, 22., ">>>>>>>>> DEX stats ");
wait_log_re!(mm_alice, 22., ">>>>>>>>> DEX stats ");

// wait until bob starts listening on the p2p port and sleep for 1 second
wait_log_re!(mm_bob, 22., "INFO Listening on");
Timer::sleep(1.).await;

// Enable coins on Bob side. Print the replies in case we need the address.
let rc = enable_coins_eth_electrum(&mm_bob, vec!["http://195.201.0.6:8565"]).await;
log! ({"enable_coins (bob): {:?}", rc});
Expand Down

0 comments on commit 3460d79

Please sign in to comment.