Skip to content

Commit cd5218d

Browse files
committed
#73: Make tests file cleanup non-fatal
1 parent 2420ada commit cd5218d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

cmd/root_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ func Test_validate(t *testing.T) {
8383
path := path.Join(os.TempDir(), "formatter_cmd_valid_2")
8484
err := os.Remove(path)
8585
if err != nil {
86-
t.Errorf("could not remove temporary file: %s", path)
86+
t.Logf("could not remove temporary file: %s", path)
8787
}
8888
},
8989
},
@@ -171,7 +171,7 @@ func Test_run(t *testing.T) {
171171
err = os.Remove(file)
172172
}
173173
if err != nil {
174-
t.Errorf("could not remove temporary file: %s", file)
174+
t.Logf("could not remove temporary file: %s", file)
175175
}
176176
workflow = nil
177177
config = formatter.Config{}

0 commit comments

Comments
 (0)