mirror of
https://github.com/morluto/rea.git
synced 2026-12-02 11:33:10 +00:00
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:
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" },
|
||||
|
||||
Reference in new issue
Block a user