diff --git a/src/program_runner.rs b/src/program_runner.rs index 266b8a9..bbf933a 100644 --- a/src/program_runner.rs +++ b/src/program_runner.rs @@ -455,7 +455,7 @@ mod test { yield_now().await; assert_eq!(quit_msg.get_count(), 1); - assert_eq!(task_span.get_exit_count(), 1); + assert!(task_span.get_exit_count() > 1); } fn make_sections_and_runner() -> (Sections, SectionRunner, Arc) { diff --git a/src/section_runner.rs b/src/section_runner.rs index bf2d1fb..3fd05ae 100644 --- a/src/section_runner.rs +++ b/src/section_runner.rs @@ -514,7 +514,7 @@ mod test { runner.quit().await.unwrap(); assert_eq!(quit_msg.get_count(), 1); - assert_eq!(task_span.get_exit_count(), 1); + assert!(task_span.get_exit_count() > 1); } fn make_sections_and_interface() -> (Sections, Arc) {