fix windows, enable tokio for examples on wasm

This commit is contained in:
Jonathan Kelley committed 2024-03-06 19:59:47 -08:00
1 parent bb5ecd779f
commit c3df8c55e3
2 files changed
+5 -1

No files matched your search

+4 -1
View File
@@ -36,7 +36,10 @@ pub fn mock_event_with_extra(id: &'static str, value: &'static str, extra: &'sta
EXPECTED_EVENTS.with_mut(|x| *x += 1);
spawn(async move {
tokio::time::sleep(std::time::Duration::from_millis(500)).await;
// We need to wait for edits to be applied before we can send the event
// Sometimes (windows...) this takes a while
// we should really be running this check when mounted
tokio::time::sleep(std::time::Duration::from_millis(10000)).await;
let js = format!(
r#"