Disable for go-json too

This commit is contained in:
ItalyPaleAle 2025-05-23 07:49:25 -07:00
parent 8816d9fa7c
commit 9a839a08c1
No known key found for this signature in database

View File

@ -1850,10 +1850,13 @@ func TestContextContentType(t *testing.T) {
} }
func TestContextBindRequestTooLarge(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 // Disabling this test when using sonic or go-json as JSON encoder because it doesn't cascade the error correctly
if json.Package == "github.com/bytedance/sonic" { switch json.Package {
case "github.com/goccy/go-json", "github.com/bytedance/sonic":
t.Skip() t.Skip()
return return
default:
// We can test
} }
w := httptest.NewRecorder() w := httptest.NewRecorder()