We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 71626bf commit 01207c8Copy full SHA for 01207c8
grpc/codegen/proto_test.go
@@ -45,7 +45,7 @@ func TestProtoFiles(t *testing.T) {
45
require.GreaterOrEqual(t, len(sections), 3)
46
code := sectionCode(t, sections[1:]...)
47
if runtime.GOOS == "windows" {
48
- c.Code = strings.ReplaceAll(c.Code, "\n", "\r\n")
+ code = strings.ReplaceAll(code, "\r\n", "\n")
49
}
50
assert.Equal(t, code, c.Code)
51
fpath := codegen.CreateTempFile(t, code)
0 commit comments