Skip to content

Commit f437c5b

Browse files
committed
fixup
Signed-off-by: Frederic BIDON <[email protected]>
1 parent 45027e6 commit f437c5b

File tree

1 file changed

+1
-9
lines changed

1 file changed

+1
-9
lines changed

internal/debug/debug_test.go

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,7 @@ func TestDebug(t *testing.T) {
2727
require.NoError(t, err)
2828

2929
output = tmpFile
30-
3130
tmpName := tmpFile.Name()
32-
defer func() {
33-
_ = os.Remove(tmpName)
34-
}()
35-
3631
testLogger := GetLogger("test", true)
3732

3833
testLogger("A debug: %s", "a string")
@@ -46,11 +41,8 @@ func TestDebug(t *testing.T) {
4641
tmpEmptyFile, err := os.CreateTemp(t.TempDir(), "debug-test")
4742
require.NoError(t, err)
4843
tmpEmpty := tmpEmptyFile.Name()
49-
defer func() {
50-
_ = os.Remove(tmpEmpty)
51-
}()
52-
5344
testLogger = GetLogger("test", false)
45+
5446
testLogger("A debug: %s", "a string")
5547
tmpFile.Close()
5648

0 commit comments

Comments
 (0)