mirror of
https://github.com/instructkr/claw-code.git
synced 2026-11-26 18:07:54 +08:00
fix(tests): increase Windows test timeout further to 180s
The initial 120s timeout was still too short for windows-latest runner. Further increase to 180s, and also increase internal mock server deadline to 90s to match.
This commit is contained in:
1 file changed
+4
-4
@@ -27,8 +27,8 @@ fn max_output_tokens_reaches_openai_compatible_tool_roundtrip() {
|
||||
let server = thread::spawn(move || {
|
||||
let mut requests = Vec::new();
|
||||
for turn in 0..2 {
|
||||
// Windows runners are slower; use a longer timeout on Windows to avoid spurious failures.
|
||||
let deadline_secs = if cfg!(windows) { 60 } else { 30 };
|
||||
// Windows runners are significantly slower; use a much longer timeout on Windows to avoid spurious failures.
|
||||
let deadline_secs = if cfg!(windows) { 90 } else { 30 };
|
||||
let deadline = Instant::now() + Duration::from_secs(deadline_secs);
|
||||
let mut stream = loop {
|
||||
match listener.accept() {
|
||||
@@ -277,8 +277,8 @@ fn output_with_deadline(command: &mut Command) -> Output {
|
||||
let mut child = command.spawn().expect("claw should launch");
|
||||
// Release the parent's file handles before workspace cleanup on Windows.
|
||||
command.stdout(Stdio::null()).stderr(Stdio::null());
|
||||
// Windows runners are slower; use a longer timeout on Windows to avoid spurious failures.
|
||||
let timeout_secs = if cfg!(windows) { 120 } else { 60 };
|
||||
// Windows runners are significantly slower; use a much longer timeout on Windows to avoid spurious failures.
|
||||
let timeout_secs = if cfg!(windows) { 180 } else { 60 };
|
||||
let deadline = Instant::now() + Duration::from_secs(timeout_secs);
|
||||
let (status, timed_out) = loop {
|
||||
if let Some(status) = child.try_wait().expect("poll claw") {
|
||||
|
||||
Reference in new issue
Block a user