wasm fixes

This commit is contained in:
John Smith
2022-11-27 10:52:07 -05:00
parent 87366c7fb2
commit 80c8a62ea1
9 changed files with 36 additions and 74 deletions

View File

@@ -295,7 +295,7 @@ pub async fn test_sleep() {
if #[cfg(target_arch = "wasm32")] {
let t1 = Date::now();
intf::sleep(1000).await;
sleep(1000).await;
let t2 = Date::now();
assert!((t2-t1) >= 1000.0);