Test: Delete temporary file afterwards (#4028)

This commit is contained in:
zonescape authored and GitHub committed 2024-11-20 05:03:39 +00:00
1 parent 59e5d24280
commit 6ba0dbafd7
1 file changed
+1
+1
View File
@@ -16,6 +16,7 @@ func TestFileLogger(t *testing.T) {
common.Must(err) common.Must(err)
path := f.Name() path := f.Name()
common.Must(f.Close()) common.Must(f.Close())
defer os.Remove(path)
creator, err := CreateFileLogWriter(path) creator, err := CreateFileLogWriter(path)
common.Must(err) common.Must(err)