Skip to content

Commit

Permalink
Remove duplicate close
Browse files Browse the repository at this point in the history
  • Loading branch information
srebhan committed Feb 24, 2025
1 parent 398e33d commit 579452f
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions logger/text_logger_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -171,10 +171,6 @@ func TestTextWriteToFileInRotation(t *testing.T) {
require.NoError(t, SetupLogging(cfg))
defer func() { require.NoError(t, CloseLogging()) }()

// Close the writer here, otherwise the temp folder cannot be deleted
// because the current log file is in use.
defer func() { require.NoError(t, CloseLogging()) }()

log.Printf("I! TEST 1") // Writes 31 bytes, will rotate
log.Printf("I! TEST") // Writes 29 byes, no rotation expected

Expand Down

0 comments on commit 579452f

Please sign in to comment.