Skip to content

Commit

Permalink
Increase the timeout for the docker timeout test. (#16864)
Browse files Browse the repository at this point in the history
See #16855. The timeout is applied only after we have successfully opened an output stream from the process, so the hypothesis with this test is that the process just runs more slowly under docker, and needs longer to get to the point where it can render output.

Fixes #16855.
  • Loading branch information
stuhood authored Sep 14, 2022
1 parent 7e266c7 commit 4142c53
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/rust/engine/process_execution/src/docker_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -563,11 +563,11 @@ async fn timeout() {
let argv = vec![
SH_PATH.to_string(),
"-c".to_owned(),
"/bin/echo -n 'Calculating...'; /bin/sleep 2; /bin/echo -n 'European Burmese'".to_string(),
"/bin/echo -n 'Calculating...'; /bin/sleep 5; /bin/echo -n 'European Burmese'".to_string(),
];

let mut process = Process::new(argv);
process.timeout = Some(Duration::from_millis(100));
process.timeout = Some(Duration::from_millis(500));
process.description = "sleepy-cat".to_string();
process.docker_image = Some(IMAGE.to_owned());

Expand Down

0 comments on commit 4142c53

Please sign in to comment.