Skip to content

Commit a1c3ac3

Browse files
committed
Wait to close and stop the auto flush
1 parent 165a860 commit a1c3ac3

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

file_logger_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,8 @@ func TestFileLogger_WithAutoFlushWithCloseWhenWrite(t *testing.T) {
6363
wg.Done()
6464
}()
6565
testLogs(t)
66+
// wait to close and stop the auto flush
67+
<-time.After(wait + time.Second)
6668
wg.Wait()
6769
}
6870

0 commit comments

Comments
 (0)