From 39ddb18a72e4bd533d72b96f18b0fe8f0a52f6fc Mon Sep 17 00:00:00 2001 From: Solomon Jacobs Date: Thu, 7 Nov 2024 15:31:17 +0100 Subject: [PATCH] test: more expressive message --- tests/test_ht_import_scheduler.rs | 2 +- tests/test_scheduler.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_ht_import_scheduler.rs b/tests/test_ht_import_scheduler.rs index 3827043b..b9704595 100644 --- a/tests/test_ht_import_scheduler.rs +++ b/tests/test_ht_import_scheduler.rs @@ -152,7 +152,7 @@ async fn run_scheduler( if let Err(e) = remove_file(&run_flag_path) { eprintln!("Removing run file failed: {e}"); } - bail!(format!("No plan result files appeared with {n_seconds_run_max} seconds")) + bail!(format!("Not all plan result files appeared within {n_seconds_run_max} seconds")) }, }; remove_file(&run_flag_path)?; diff --git a/tests/test_scheduler.rs b/tests/test_scheduler.rs index a44e7eb5..f06e589d 100644 --- a/tests/test_scheduler.rs +++ b/tests/test_scheduler.rs @@ -359,7 +359,7 @@ async fn run_scheduler( bail!("Scheduler terminated unexpectedly") }, _ = sleep(Duration::from_secs(n_seconds_run_max)) => { - bail!(format!("No plan result files appeared with {n_seconds_run_max} seconds")) + bail!(format!("Not all plan result files appeared within {n_seconds_run_max} seconds")) }, }; remove_file(&run_flag_path)?;