Skip to content

Commit 01207c8

Browse files
committed
Some newlines are not \r\n
1 parent 71626bf commit 01207c8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

grpc/codegen/proto_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ func TestProtoFiles(t *testing.T) {
4545
require.GreaterOrEqual(t, len(sections), 3)
4646
code := sectionCode(t, sections[1:]...)
4747
if runtime.GOOS == "windows" {
48-
c.Code = strings.ReplaceAll(c.Code, "\n", "\r\n")
48+
code = strings.ReplaceAll(code, "\r\n", "\n")
4949
}
5050
assert.Equal(t, code, c.Code)
5151
fpath := codegen.CreateTempFile(t, code)

0 commit comments

Comments
 (0)