From 21a1db78b3e2fce49fadec641eb6edf58b52c03d Mon Sep 17 00:00:00 2001 From: Josh Lehman Date: Mon, 2 Mar 2026 13:54:34 -0800 Subject: [PATCH] test: stabilize bun cache invalidation fixtures --- src/pairing/pairing-store.test.ts | 8 ++++---- src/security/skill-scanner.test.ts | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/pairing/pairing-store.test.ts b/src/pairing/pairing-store.test.ts index e0127d664..a99e9ca9b 100644 --- a/src/pairing/pairing-store.test.ts +++ b/src/pairing/pairing-store.test.ts @@ -439,10 +439,10 @@ describe("pairing store", () => { stateDir, channel: "telegram", accountId: "yy", - allowFrom: ["1002"], + allowFrom: ["10022"], }); const third = await readChannelAllowFromStore("telegram", process.env, "yy"); - expect(third).toEqual(["1002"]); + expect(third).toEqual(["10022"]); expect(readSpy).toHaveBeenCalledTimes(2); readSpy.mockRestore(); }); @@ -468,10 +468,10 @@ describe("pairing store", () => { stateDir, channel: "telegram", accountId: "yy", - allowFrom: ["1002"], + allowFrom: ["10022"], }); const third = readChannelAllowFromStoreSync("telegram", process.env, "yy"); - expect(third).toEqual(["1002"]); + expect(third).toEqual(["10022"]); expect(readSpy).toHaveBeenCalledTimes(2); readSpy.mockRestore(); }); diff --git a/src/security/skill-scanner.test.ts b/src/security/skill-scanner.test.ts index f16528aa0..b997a2c42 100644 --- a/src/security/skill-scanner.test.ts +++ b/src/security/skill-scanner.test.ts @@ -358,7 +358,7 @@ describe("scanDirectoryWithSummary", () => { expect(second.critical).toBe(first.critical); expect(readSpy).toHaveBeenCalledTimes(1); - await fs.writeFile(filePath, `const x = eval("2+2");`, "utf-8"); + await fs.writeFile(filePath, `const x = eval("2+2");\n// cache bust`, "utf-8"); const third = await scanDirectoryWithSummary(root); expect(third.critical).toBeGreaterThan(0);