| 1 | From: Shengjing Zhu <[email protected]> |
| 2 | Date: Thu, 29 Feb 2024 19:05:55 +0800 |
| 3 | Subject: Skip failed json marshal tests with Go1.22 |
| 4 | |
| 5 | --- |
| 6 | pkg/internal/third_party/go-json-experiment/json/arshal_test.go | 3 +++ |
| 7 | 1 file changed, 3 insertions(+) |
| 8 | |
| 9 | diff --git a/pkg/internal/third_party/go-json-experiment/json/arshal_test.go b/pkg/internal/third_party/go-json-experiment/json/arshal_test.go |
| 10 | index f2235c5..9f97a2f 100644 |
| 11 | --- a/pkg/internal/third_party/go-json-experiment/json/arshal_test.go |
| 12 | +++ b/pkg/internal/third_party/go-json-experiment/json/arshal_test.go |
| 13 | @@ -3674,6 +3674,9 @@ func TestMarshal(t *testing.T) { |
| 14 | |
| 15 | for _, tt := range tests { |
| 16 | t.Run(tt.name.name, func(t *testing.T) { |
| 17 | + if tt.name.name == "Structs/OmitEmpty/NonEmpty" || tt.name.name == "Structs/OmitZero/NonZero" { |
| 18 | + t.Skip("behavior changed in go1.22") |
| 19 | + } |
| 20 | var got []byte |
| 21 | var gotErr error |
| 22 | if tt.useWriter { |