From ce48f43550c205a59a046acaf84225c897c3f64d Mon Sep 17 00:00:00 2001 From: morluto <76467478+morluto@users.noreply.github.com> Date: Fri, 23 Oct 2026 18:03:19 +0800 Subject: [PATCH] test(go): assert unresolved MZ candidate boundary --- tests/boundary/go/goBinaryImage.test.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/boundary/go/goBinaryImage.test.ts b/tests/boundary/go/goBinaryImage.test.ts index c45d26f361..5df7d8244c 100644 --- a/tests/boundary/go/goBinaryImage.test.ts +++ b/tests/boundary/go/goBinaryImage.test.ts @@ -359,7 +359,9 @@ it("distinguishes unsupported containers from malformed recognized images", () = ); const pe = createGoBinaryFixture({ format: "pe" }); pe.bytes.writeUInt32LE(0xfffffff0, 60); - expect(() => readGoBinaryImage(pe.bytes)).toThrowError(/range|truncated/i); + expect(() => readGoBinaryImage(pe.bytes)).toThrowError( + /MZ Windows new-header candidate is unresolved/i, + ); }); it("reports JVM class files as unsupported images instead of fat Mach-O containers", () => {