test(artifacts): expect resource_constraint for the ZIP zstd window ceiling (#15696)

The fixed 128 MiB ZIP Zstandard window allowance refuses the read at
admission, which #15588 reports as resource_constraint. The test still
pinned partial through a ternary keyed by the fixture size.
This commit is contained in:
morluto authored and GitHub committed 2026-12-01 19:12:16 -05:00
1 parent 5453b7bc6d
commit 51b91c873d
1 file changed
+1 -1
@@ -16,7 +16,7 @@ import { ZIP_ZSTANDARD_WINDOW_CEILING } from "../../../src/resources/ZipArtifact
const expectRefusal = (diagnostic: unknown, large: boolean): void => {
expect(diagnostic).toMatchObject({
code: large ? "partial" : "unsupported_target",
code: large ? "resource_constraint" : "unsupported_target",
details: large
? { reason: "limit", boundary: "memory", truncated: true }
: { failure_kind: "malformed", format: "zip" },