Skip to content

Commit bb95ec3

Browse files
[codex] Normalize Windows path in MCP startup snapshot test (openai#16204)
## Summary A Windows-only snapshot assertion in the app-server MCP startup warning test compared the raw rendered path, so CI saw `C:\tmp\project` instead of the normalized `/tmp/project` snapshot fixture. ## Fix Route that snapshot assertion through the existing `normalize_snapshot_paths(...)` helper so the test remains platform-stable.
1 parent af568af commit bb95ec3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codex-rs/tui/src/chatwidget/tests.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11760,7 +11760,7 @@ async fn app_server_mcp_startup_failure_renders_warning_history() {
1176011760

1176111761
assert_snapshot!(
1176211762
"app_server_mcp_startup_failure_renders_warning_history",
11763-
term.backend().vt100().screen().contents()
11763+
normalize_snapshot_paths(term.backend().vt100().screen().contents())
1176411764
);
1176511765
}
1176611766

0 commit comments

Comments
 (0)