Skip to content

Commit

Permalink
test(main): test if requeue duration can be passed as a parameter
Browse files Browse the repository at this point in the history
Signed-off-by: Aljoscha Poertner <[email protected]>
  • Loading branch information
aljoshare committed Sep 22, 2023
1 parent 4bbd41d commit fc9b253
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions tests/test_main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,15 @@ fn dry_run() {
.assert()
.interrupted();
}

#[test]
fn requeue_duration() {
let mut cmd = Command::cargo_bin("runo").unwrap();
cmd.arg("--requeue-duration")
.arg("10")
.arg("--http-port")
.arg("0")
.timeout(std::time::Duration::from_secs(1))
.assert()
.interrupted();
}

0 comments on commit fc9b253

Please sign in to comment.