mirror of
https://github.com/gin-gonic/gin.git
synced 2025-10-14 12:12:12 +08:00
Disable for go-json too
This commit is contained in:
parent
8816d9fa7c
commit
9a839a08c1
@ -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()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user