Test: Delete temporary file afterwards (#4028)

This commit is contained in:
zonescape 2024-11-20 08:03:39 +03:00 committed by GitHub
parent 59e5d24280
commit 6ba0dbafd7
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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)