Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions packages/cli/test/cli.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -1764,10 +1764,11 @@ test("call recover reuses the original confirmation after a run_call timeout", a
assert.equal(firstPayload.call_started, "unknown");
assert.equal(firstPayload.retry_safe, false);
assert.doesNotMatch(firstResult.stdout, /plan-secret|confirm-secret/);
assert.equal(
fs.statSync(callRecoveryCachePath(cacheRoot, serverUrl, firstPayload.recovery_id)).mode & 0o777,
0o600
);
const recoveryPath = callRecoveryCachePath(cacheRoot, serverUrl, firstPayload.recovery_id);
assert.equal(fs.existsSync(recoveryPath), true);
if (process.platform !== "win32") {
assert.equal(fs.statSync(recoveryPath).mode & 0o777, 0o600);
}

const recoveredResult = await run(
[
Expand Down