Skip to content

Commit 13ac3a3

Browse files
committed
Fix: Adjust delay to improve CI reliability.
Correct timeout when starting server.
1 parent a011838 commit 13ac3a3

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

server/src/ide/filewatcher.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ mod tests {
11091109
dest.push("test2.py");
11101110
fs::rename(file_path, dest.as_path()).unwrap();
11111111
// Wait for the filewatcher to debounce this file write.
1112-
sleep(Duration::from_secs(2)).await;
1112+
sleep(Duration::from_secs(3)).await;
11131113
let m = get_message(&mut to_client_rx).await;
11141114
assert_eq!(m.id, INITIAL_IDE_MESSAGE_ID + 2.0 * MESSAGE_ID_INCREMENT);
11151115
assert!(matches!(m.message, EditorMessageContents::Closed));

server/src/main.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -127,10 +127,7 @@ impl Cli {
127127
let ping_addr = fix_addr(addr);
128128
loop {
129129
// Look for a ping/pong response from the server.
130-
match minreq::get(format!("http://{ping_addr}/ping"))
131-
.with_timeout(3)
132-
.send()
133-
{
130+
match minreq::get(format!("http://{ping_addr}/ping")).send() {
134131
Ok(response) => {
135132
let status_code = response.status_code;
136133
let body = response.as_str().unwrap_or("Non-text body");

0 commit comments

Comments
 (0)