From f69dab7da234f6f262f7dec401f17a2caf0f094f Mon Sep 17 00:00:00 2001 From: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> Date: Thu, 29 Oct 2026 10:23:53 +0800 Subject: [PATCH] test(cli): allow filesystem fixture time on Windows Signed-off-by: XiaoSeS <87064762+XiaoSeS@users.noreply.github.com> --- cli/test/unit/integrations/installed-update-snapshot.test.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/test/unit/integrations/installed-update-snapshot.test.ts b/cli/test/unit/integrations/installed-update-snapshot.test.ts index c48960a28..2512a1a59 100644 --- a/cli/test/unit/integrations/installed-update-snapshot.test.ts +++ b/cli/test/unit/integrations/installed-update-snapshot.test.ts @@ -27,6 +27,7 @@ async function fixture(count: number, run: (inventory: InventoryStore, targets: } finally { await fs.rm(root, { recursive: true, force: true }) } } +// The timeout includes fixture creation and cleanup; performance is asserted by I/O counts, not wall time. for (const size of [10, 100, 500]) test(`snapshot ${size} real filesystem targets has linear reads`, async () => { await fixture(size, async (inventory, targets) => { const read = spyOn(inventory, 'read') @@ -46,7 +47,7 @@ for (const size of [10, 100, 500]) test(`snapshot ${size} real filesystem target console.info(JSON.stringify({ targets: size, inventoryReads: read.mock.calls.length, metadataReads, inventoryStats, elapsedMs: Math.round(performance.now() - started) })) } finally { read.mockRestore(); files.mockRestore(); stats.mockRestore() } }) -}) +}, 30_000) test('snapshot rejects inventory ABA, atomic replacement and target metadata changes', async () => { await fixture(2, async (inventory, targets) => {