mirror of
https://github.com/denoland/deno.git
synced 2024-11-24 15:19:26 -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:
parent
5ab7c702bb
commit
3e83d686a8
2 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue