Browse Source

Test: Delete temporary file afterwards (#4028)

zonescape 1 year ago
parent
commit
6ba0dbafd7
1 changed files with 1 additions and 0 deletions
  1. 1 0
      common/log/logger_test.go

+ 1 - 0
common/log/logger_test.go

@@ -16,6 +16,7 @@ func TestFileLogger(t *testing.T) {
 	common.Must(err)
 	path := f.Name()
 	common.Must(f.Close())
+	defer os.Remove(path)
 
 	creator, err := CreateFileLogWriter(path)
 	common.Must(err)