1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-12-26 00:59:24 -05:00

ci: make upgrade_lsp_repl_sleeps less flaky (#21363)

Makes this test less flaky by allowing way more time for the test to
occur in.
This commit is contained in:
David Sherret 2023-11-27 18:12:17 -05:00 committed by GitHub
parent 5ab7c702bb
commit 3e83d686a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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);
}

View file

@ -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)
@ -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)