Skip to content

Commit

Permalink
test: don't fail if we can't clean up test config files
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Feb 2, 2024
1 parent e4ee01b commit 3992f5d
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion main_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1393,7 +1393,9 @@ func setupConfigForUpdating(t *testing.T, path string, initial string, updated s
// ensure that we always try to remove the file
defer func() {
if err = os.Remove(path); err != nil {
t.Fatalf("could not remove test file: %v", err)
// this will typically fail on Windows due to processes,
// so we just treat it as a warning instead of an error
t.Logf("could not remove test file: %v", err)
}
}()

Expand Down

0 comments on commit 3992f5d

Please sign in to comment.