From 794ecae2a1efdc88440f8b2779c4b293b67d717b Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Sun, 27 Sep 2020 21:12:10 -0600 Subject: [PATCH] Fix tests due to trace spans --- src/program_runner.rs | 2 +- src/section_runner.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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) {