Skip to content

Commit

Permalink
ci: make upgrade_lsp_repl_sleeps less flaky (denoland#21363)
Browse files Browse the repository at this point in the history
Makes this test less flaky by allowing way more time for the test to
occur in.
  • Loading branch information
dsherret authored Nov 27, 2023
1 parent 5ab7c70 commit 3e83d68
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cli/tests/integration/upgrade_tests.rs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ fn upgrade_lsp_repl_sleeps() {
pty.expect("579");
});

// the test server will sleep for 45 seconds, so ensure this is less
// the test server will sleep for 95 seconds, so ensure this is less
let elapsed_secs = start_instant.elapsed().as_secs();
assert!(elapsed_secs < 30, "elapsed_secs: {}", elapsed_secs);
assert!(elapsed_secs < 94, "elapsed_secs: {}", elapsed_secs);
}
4 changes: 2 additions & 2 deletions test_util/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1274,7 +1274,7 @@ async fn main_server(
)
}
(&hyper::Method::GET, "/upgrade/sleep/release-latest.txt") => {
tokio::time::sleep(Duration::from_secs(45)).await;
tokio::time::sleep(Duration::from_secs(95)).await;
return Ok(
Response::builder()
.status(StatusCode::OK)
Expand All @@ -1283,7 +1283,7 @@ async fn main_server(
);
}
(&hyper::Method::GET, "/upgrade/sleep/canary-latest.txt") => {
tokio::time::sleep(Duration::from_secs(45)).await;
tokio::time::sleep(Duration::from_secs(95)).await;
return Ok(
Response::builder()
.status(StatusCode::OK)
Expand Down

0 comments on commit 3e83d68

Please sign in to comment.