mirror of
https://github.com/serai-dex/serai.git
synced 2025-12-08 20:29:23 +00:00
Resolve #327
Also runs `cargo update` and moves where we install the wasm toolchain in the Dockerfile for better caching properties.
This commit is contained in:
@@ -5,12 +5,9 @@ use tokio::time::sleep;
|
||||
use serai_client::Serai;
|
||||
|
||||
mod common;
|
||||
use common::serai;
|
||||
|
||||
serai_test!(
|
||||
async fn time() {
|
||||
let serai = serai().await;
|
||||
|
||||
time: (|serai: Serai| async move {
|
||||
let mut number = serai.latest_block().await.unwrap().number();
|
||||
let mut done = 0;
|
||||
while done < 3 {
|
||||
@@ -27,5 +24,5 @@ serai_test!(
|
||||
assert!(now.saturating_sub(block.time().unwrap()) < 5);
|
||||
done += 1;
|
||||
}
|
||||
}
|
||||
})
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user