瀏覽代碼

give longer window for events

Jonathan Kelley 1 年之前
父節點
當前提交
2ead6c6074
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      packages/desktop/headless_tests/events.rs

+ 2 - 2
packages/desktop/headless_tests/events.rs

@@ -14,7 +14,7 @@ pub(crate) fn check_app_exits(app: fn() -> Element) {
     let should_panic = std::sync::Arc::new(std::sync::atomic::AtomicBool::new(true));
     let should_panic_clone = should_panic.clone();
     std::thread::spawn(move || {
-        std::thread::sleep(std::time::Duration::from_secs(30));
+        std::thread::sleep(std::time::Duration::from_secs(60));
         if should_panic_clone.load(std::sync::atomic::Ordering::SeqCst) {
             std::process::exit(exitcode::SOFTWARE);
         }
@@ -31,7 +31,7 @@ pub(crate) fn check_app_exits(app: fn() -> Element) {
 fn mock_event(id: &'static str, value: &'static str) {
     use_hook(move || {
         spawn(async move {
-            tokio::time::sleep(std::time::Duration::from_millis(2000)).await;
+            tokio::time::sleep(std::time::Duration::from_millis(5000)).await;
 
             let js = format!(
                 r#"