Skip to content

Commit 1a9c6ff

Browse files
enable on windows
1 parent 3f6c99d commit 1a9c6ff

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

codex-rs/core/tests/suite/shell_command.rs

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -199,12 +199,16 @@ async fn pipe_output_without_login() -> anyhow::Result<()> {
199199
#[tokio::test(flavor = "multi_thread", worker_threads = 2)]
200200
async fn shell_command_times_out_with_timeout_ms() -> anyhow::Result<()> {
201201
skip_if_no_network!(Ok(()));
202-
skip_if_windows!(Ok(()));
203202

204203
let harness = shell_command_harness_with(|builder| builder.with_model("gpt-5.1")).await?;
205204

206205
let call_id = "shell-command-timeout";
207-
mount_shell_responses_with_timeout(&harness, call_id, "sleep 5", None, 200).await;
206+
let command = if cfg!(windows) {
207+
"timeout /t 5"
208+
} else {
209+
"sleep 5"
210+
};
211+
mount_shell_responses_with_timeout(&harness, call_id, command, None, 200).await;
208212
harness
209213
.submit("run a long command with a short timeout")
210214
.await?;

0 commit comments

Comments
 (0)