From 626d0250dbfe07fc55fe17686b0bc437c510b32b Mon Sep 17 00:00:00 2001 From: Plastic-time Date: Mon, 26 Oct 2026 19:45:30 -0400 Subject: [PATCH] test: bind extraction close fixtures to their ZIP digest --- .../boundary/filesystem/safeOutputTreeCloseFailures.test.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/tests/boundary/filesystem/safeOutputTreeCloseFailures.test.ts b/tests/boundary/filesystem/safeOutputTreeCloseFailures.test.ts index d835b1e460..562db6232a 100644 --- a/tests/boundary/filesystem/safeOutputTreeCloseFailures.test.ts +++ b/tests/boundary/filesystem/safeOutputTreeCloseFailures.test.ts @@ -184,11 +184,12 @@ it.skipIf(process.platform === "win32").each([false, true])( const output = join(root, "published"); const writer = new ZipWriter(new Uint8ArrayWriter()); await writer.add("payload.txt", new TextReader("committed bytes")); - await writeFile(source, await writer.close()); + const bytes = await writer.close(); + await writeFile(source, bytes); const client = new ArtifactProvider(process.env).createClient({ path: source, sourcePath: source, - sha256: "0".repeat(64), + sha256: createHash("sha256").update(bytes).digest("hex"), kind: "archive", format: "zip", });