Skip to content

Commit e41e74f

Browse files
committed
ensure correct newlines for testdata
1 parent c1302f6 commit e41e74f

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

internal/testcli/golden.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ func ReadFile(t testutil.TestingT, ctx context.Context, filename string) string
2626
return ""
2727
}
2828
require.NoError(t, err)
29-
return string(data)
29+
// On CI, on Windows \n in the file somehow end up as \r\n
30+
return NormalizeNewlines(string(data))
3031
}
3132

3233
func WriteFile(t testutil.TestingT, ctx context.Context, filename, data string) {

0 commit comments

Comments
 (0)