From 9a839a08c1e84f4a8ff1c5307f8beb38e6fbceef Mon Sep 17 00:00:00 2001 From: ItalyPaleAle <43508+ItalyPaleAle@users.noreply.github.com> Date: Fri, 23 May 2025 07:49:25 -0700 Subject: [PATCH] Disable for go-json too --- context_test.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/context_test.go b/context_test.go index 99238714..e1849472 100644 --- a/context_test.go +++ b/context_test.go @@ -1850,10 +1850,13 @@ func TestContextContentType(t *testing.T) { } func TestContextBindRequestTooLarge(t *testing.T) { - // Disabling this test when using sonic as JSON encoder because it doesn't cascade the error correctly - if json.Package == "github.com/bytedance/sonic" { + // Disabling this test when using sonic or go-json as JSON encoder because it doesn't cascade the error correctly + switch json.Package { + case "github.com/goccy/go-json", "github.com/bytedance/sonic": t.Skip() return + default: + // We can test } w := httptest.NewRecorder()