Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: windows
  • Loading branch information
mtojek committed Sep 7, 2023
commit 6c45602ac5e7d8a35ed6afe5a16fdd239b22e1f4
1 change: 1 addition & 0 deletions provisioner/terraform/cleanup_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,7 @@ func diffFileSystem(t *testing.T, fs afero.Fs) {
}

want, err := os.ReadFile(goldenFile)
want = bytes.ReplaceAll(want, []byte{'\r', '\n'}, []byte{'\n'}) // fix for Windows
require.NoError(t, err, "open golden file, run \"make update-golden-files\" and commit the changes")
assert.Empty(t, cmp.Diff(want, actual), "golden file mismatch (-want +got): %s, run \"make update-golden-files\", verify and commit the changes", goldenFile)
}
Expand Down