Skip to content

Commit 3e83d68

Browse files
authored
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.
1 parent 5ab7c70 commit 3e83d68

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

cli/tests/integration/upgrade_tests.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ fn upgrade_lsp_repl_sleeps() {
253253
pty.expect("579");
254254
});
255255

256-
// the test server will sleep for 45 seconds, so ensure this is less
256+
// the test server will sleep for 95 seconds, so ensure this is less
257257
let elapsed_secs = start_instant.elapsed().as_secs();
258-
assert!(elapsed_secs < 30, "elapsed_secs: {}", elapsed_secs);
258+
assert!(elapsed_secs < 94, "elapsed_secs: {}", elapsed_secs);
259259
}

test_util/src/lib.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,7 +1274,7 @@ async fn main_server(
12741274
)
12751275
}
12761276
(&hyper::Method::GET, "/upgrade/sleep/release-latest.txt") => {
1277-
tokio::time::sleep(Duration::from_secs(45)).await;
1277+
tokio::time::sleep(Duration::from_secs(95)).await;
12781278
return Ok(
12791279
Response::builder()
12801280
.status(StatusCode::OK)
@@ -1283,7 +1283,7 @@ async fn main_server(
12831283
);
12841284
}
12851285
(&hyper::Method::GET, "/upgrade/sleep/canary-latest.txt") => {
1286-
tokio::time::sleep(Duration::from_secs(45)).await;
1286+
tokio::time::sleep(Duration::from_secs(95)).await;
12871287
return Ok(
12881288
Response::builder()
12891289
.status(StatusCode::OK)

0 commit comments

Comments
 (0)