Skip to content

Commit 14a73cf

Browse files
committed
test(config): expect config-mutation ACL timeoutMemoKey
saveConfig now passes a distinct timeoutMemoKey so management-dir timeouts cannot poison config mutation; update the win32 spy assertion to match.
1 parent 7e041d7 commit 14a73cf

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎tests/config.test.ts‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1611,7 +1611,10 @@ describe("config.ts – Windows ACL hardening integration", () => {
16111611
try {
16121612
const spy = spyOn(windowsAcl, "hardenSecretDir").mockReturnValue({ ok: true });
16131613
saveConfig(getDefaultConfig());
1614-
expect(spy).toHaveBeenCalledWith(testDir, { required: true });
1614+
expect(spy).toHaveBeenCalledWith(testDir, {
1615+
required: true,
1616+
timeoutMemoKey: `${testDir}::config-mutation`,
1617+
});
16151618
expect(existsSync(getConfigPath())).toBe(true);
16161619
spy.mockRestore();
16171620
} finally {

0 commit comments

Comments
 (0)