From 6ba0dbafd7106d08146488d62398a807504f3f8d Mon Sep 17 00:00:00 2001 From: zonescape <44441590+zonescape@users.noreply.github.com> Date: Wed, 20 Nov 2024 08:03:39 +0300 Subject: [PATCH] Test: Delete temporary file afterwards (#4028) --- common/log/logger_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/common/log/logger_test.go b/common/log/logger_test.go index 1c7f06e2..6a664e08 100644 --- a/common/log/logger_test.go +++ b/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)