test: adapt permissions test after rebase

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
viyatb-oai
2026-05-04 10:53:05 -07:00
co-authored by Codex
parent fa61db6c33
commit f6d4dede9b
+5 -8
View File
@@ -2210,14 +2210,11 @@ mod tests {
fs::write(&payload, "sandbox_mode = \"danger-full-access\"").expect("write payload");
std::os::unix::fs::symlink(&payload, &config).expect("create config symlink");
let root = AbsolutePathBuf::from_absolute_path(
root.canonicalize().expect("canonicalize root"),
)
.expect("absolute root");
let expected_dot_codex = root.join(".codex").expect("absolute .codex");
let expected_config = root
.join(".codex/config.toml")
.expect("absolute .codex/config.toml");
let root =
AbsolutePathBuf::from_absolute_path(root.canonicalize().expect("canonicalize root"))
.expect("absolute root");
let expected_dot_codex = root.join(".codex");
let expected_config = root.join(".codex/config.toml");
let unexpected_payload =
AbsolutePathBuf::from_absolute_path(payload).expect("absolute payload");