diff --git a/generics_test.go b/generics_test.go index ac5e66d55..033bcf546 100644 --- a/generics_test.go +++ b/generics_test.go @@ -4,7 +4,6 @@ package swag import ( - "bytes" "encoding/json" "fmt" "go/ast" @@ -40,8 +39,6 @@ func TestParseGenericsBasic(t *testing.T) { err = p.ParseAPI(searchDir, mainAPIFile, defaultParseDepth) assert.NoError(t, err) b, err := json.MarshalIndent(p.swagger, "", " ") - b = bytes.Replace(b, []byte{'\n'}, []byte{'\r', '\n'}, -1) - os.WriteFile(filepath.Join(searchDir, "expected.json"), b, os.ModePerm) assert.NoError(t, err) assert.Equal(t, string(expected), string(b)) }