Skip to content

Commit d7177ad

Browse files
use helper
1 parent 01f58d1 commit d7177ad

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
use anyhow::Result;
44
use core_test_support::responses::ev_apply_patch_call;
5+
use core_test_support::responses::ev_shell_command_call;
56
use core_test_support::test_codex::ApplyPatchModelOutput;
67
use pretty_assertions::assert_eq;
78
use std::fs;
@@ -693,11 +694,10 @@ async fn apply_patch_shell_command_heredoc_with_cd_updates_relative_workdir() ->
693694

694695
let script = "cd sub && apply_patch <<'EOF'\n*** Begin Patch\n*** Update File: in_sub.txt\n@@\n-before\n+after\n*** End Patch\nEOF\n";
695696
let call_id = "shell-heredoc-cd";
696-
let args = json!({ "command": script, "timeout_ms": 5_000 });
697697
let bodies = vec![
698698
sse(vec![
699699
ev_response_created("resp-1"),
700-
ev_function_call(call_id, "shell_command", &serde_json::to_string(&args)?),
700+
ev_shell_command_call(call_id, script),
701701
ev_completed("resp-1"),
702702
]),
703703
sse(vec![

0 commit comments

Comments
 (0)