mirror of
https://github.com/serai-dex/serai.git
synced 2025-01-10 12:54:35 +00:00
Add secondary while loop to serai/client's test runner
There's a failing CI run on a node which booted, yet didn't create a genesis yet. Apparently, the RPC is potentially accessible before the chain is in. This attempts to resolve that.
This commit is contained in:
parent
a4fdff3e3b
commit
b0e0fc44cf
1 changed files with 3 additions and 0 deletions
|
@ -106,6 +106,9 @@ macro_rules! serai_test {
|
|||
while Serai::new(URL).await.is_err() {
|
||||
tokio::time::sleep(Duration::from_secs(1)).await;
|
||||
}
|
||||
while Serai::new(URL).await.unwrap().get_latest_block_hash().await.is_err() {
|
||||
tokio::time::sleep(Duration::from_secs(1)).await;
|
||||
}
|
||||
command
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue