diff --git a/packages/desktop/headless_tests/events.rs b/packages/desktop/headless_tests/events.rs index 67f4176dc..089b8a4ee 100644 --- a/packages/desktop/headless_tests/events.rs +++ b/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(5)); + std::thread::sleep(std::time::Duration::from_secs(30)); if should_panic_clone.load(std::sync::atomic::Ordering::SeqCst) { std::process::exit(exitcode::SOFTWARE); } @@ -205,10 +205,10 @@ fn app() -> Element { r#"new FocusEvent("focusout",{bubbles: true})"#, ); - if received_events() == 13 { - println!("all events recieved"); - desktop_context.close(); - } + // if received_events() == 13 { + // println!("all events recieved"); + // desktop_context.close(); + // } rsx! { div {