소스 검색

maybe windows needs even longer for windows to open

Jonathan Kelley 1 년 전
부모
커밋
d2346cc477
1개의 변경된 파일5개의 추가작업 그리고 5개의 파일을 삭제
  1. 5 5
      packages/desktop/headless_tests/events.rs

+ 5 - 5
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 {