create event tests

This commit is contained in:
Evan Almloff committed 2023-04-27 18:00:43 -05:00
1 parent f381e56ab3
commit 01d673e654
3 files changed
+293 -3

No files matched your search

+2 -2
View File
@@ -16,9 +16,9 @@ pub(crate) fn check_app_exits(app: Component) {
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(100));
std::thread::sleep(std::time::Duration::from_secs(10));
if should_panic_clone.load(std::sync::atomic::Ordering::SeqCst) {
panic!("App did not exit successfully")
std::process::exit(exitcode::SOFTWARE);
}
});