Skip to content

Commit

Permalink
Fix windows newlines
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan committed Oct 2, 2024
1 parent 1d72cdd commit 564cadd
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion plugins/outputs/remotefile/remotefile_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -326,8 +326,9 @@ func TestCSVSerialization(t *testing.T) {
// Check the result
for expectedFilename, expectedContent := range expected {
require.FileExists(t, filepath.Join(tmpdir, expectedFilename))
actual, err := os.ReadFile(filepath.Join(tmpdir, expectedFilename))
buf, err := os.ReadFile(filepath.Join(tmpdir, expectedFilename))
require.NoError(t, err)
actual := strings.ReplaceAll(string(buf), "\r\n", "\n")
require.Equal(t, expectedContent, string(actual))
}

Expand Down

0 comments on commit 564cadd

Please sign in to comment.