Skip to content

Commit

Permalink
test: terminate scheduler on timeout
Browse files Browse the repository at this point in the history
CMK-20046
  • Loading branch information
SoloJacobs committed Nov 11, 2024
1 parent 6ec3b7c commit 7af44ae
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions tests/test_scheduler.rs
Original file line number Diff line number Diff line change
Expand Up @@ -358,6 +358,9 @@ async fn run_scheduler(
bail!("Scheduler terminated unexpectedly")
},
_ = sleep(Duration::from_secs(n_seconds_run_max)) => {
if let Err(e) = remove_file(&run_flag_path) {
eprintln!("Removing run file failed: {e}");
}
bail!(format!("Not all plan result files appeared within {n_seconds_run_max} seconds"))
},
};
Expand Down

0 comments on commit 7af44ae

Please sign in to comment.