Skip to content

Commit

Permalink
ensure correct newlines for testdata
Browse files Browse the repository at this point in the history
  • Loading branch information
denik committed Dec 19, 2024
1 parent c1302f6 commit e41e74f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion internal/testcli/golden.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit e41e74f

Please sign in to comment.