ensure correct newlines for testdata

This commit is contained in:
Denis Bilenko 2024-12-19 12:58:59 +01:00
parent 755b8de2b5
commit 8e1c38ac59
1 changed files with 2 additions and 1 deletions

View File

@ -26,7 +26,8 @@ func ReadFile(t testutil.TestingT, ctx context.Context, filename string) string
return ""
}
require.NoError(t, err)
return string(data)
// On CI, on Windows \n in the file somehow end up as \r\n
return NormalizeNewlines(string(data))
}
func WriteFile(t testutil.TestingT, ctx context.Context, filename, data string) {