mirror of
https://github.com/openclaw/openclaw.git
synced 2026-04-19 21:21:10 +00:00
Tests: fix boundary and late-run drift
This commit is contained in:
@@ -38,7 +38,10 @@ describe("completion-cli", () => {
|
||||
|
||||
const probe = spawnSync("zsh", ["-fc", "exit 0"], { encoding: "utf8" });
|
||||
if (probe.error) {
|
||||
if ("code" in probe.error && probe.error.code === "ENOENT") {
|
||||
if (
|
||||
"code" in probe.error &&
|
||||
(probe.error.code === "ENOENT" || probe.error.code === "EACCES")
|
||||
) {
|
||||
return;
|
||||
}
|
||||
throw probe.error;
|
||||
|
||||
Reference in New Issue
Block a user