mirror of
https://github.com/comit-network/xmr-btc-swap.git
synced 2024-12-24 23:19:34 -05:00
use tokio::time::sleep instead of std:🧵:sleep
This commit is contained in:
parent
96115da039
commit
31c23a24ac
@ -1,8 +1,9 @@
|
|||||||
use crate::testutils::init_tracing;
|
use crate::testutils::init_tracing;
|
||||||
use monero_harness::{Monero, MoneroWalletRpc};
|
use monero_harness::{Monero, MoneroWalletRpc};
|
||||||
use spectral::prelude::*;
|
use spectral::prelude::*;
|
||||||
use std::{thread::sleep, time::Duration};
|
use std::time::Duration;
|
||||||
use testcontainers::clients::Cli;
|
use testcontainers::clients::Cli;
|
||||||
|
use tokio::time::sleep;
|
||||||
|
|
||||||
mod testutils;
|
mod testutils;
|
||||||
|
|
||||||
@ -67,6 +68,6 @@ async fn wait_for_wallet_to_catch_up(wallet: &MoneroWalletRpc, expected_balance:
|
|||||||
if balance == expected_balance || max_retry == retry {
|
if balance == expected_balance || max_retry == retry {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
sleep(Duration::from_secs(1));
|
sleep(Duration::from_secs(1)).await;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user