浏览代码

Add logging to event checker

Jonathan Kelley 1 年之前
父节点
当前提交
48d6a9acbb
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      packages/desktop/headless_tests/events.rs

+ 1 - 0
packages/desktop/headless_tests/events.rs

@@ -16,6 +16,7 @@ pub(crate) fn check_app_exits(app: fn() -> Element) {
     std::thread::spawn(move || {
     std::thread::spawn(move || {
         std::thread::sleep(std::time::Duration::from_secs(60));
         std::thread::sleep(std::time::Duration::from_secs(60));
         if should_panic_clone.load(std::sync::atomic::Ordering::SeqCst) {
         if should_panic_clone.load(std::sync::atomic::Ordering::SeqCst) {
+            eprintln!("App did not exit in time");
             std::process::exit(exitcode::SOFTWARE);
             std::process::exit(exitcode::SOFTWARE);
         }
         }
     });
     });