Skip to content

Commit

Permalink
Fix test timing (natefinch#64)
Browse files Browse the repository at this point in the history
fix test timeout on CI
  • Loading branch information
natefinch authored Aug 17, 2018
1 parent aee4629 commit 7d6a187
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lumberjack_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ func TestMaxBackups(t *testing.T) {
// Create a log file that is/was being compressed - this should
// not be counted since both the compressed and the uncompressed
// log files still exist.
compLogFile := fourthFilename+compressSuffix
compLogFile := fourthFilename + compressSuffix
err = ioutil.WriteFile(compLogFile, []byte("compress"), 0644)
isNil(err, t)

Expand Down Expand Up @@ -623,7 +623,7 @@ func TestCompressOnRotate(t *testing.T) {

// we need to wait a little bit since the files get compressed on a different
// goroutine.
<-time.After(10 * time.Millisecond)
<-time.After(300 * time.Millisecond)

// a compressed version of the log file should now exist and the original
// should have been removed.
Expand Down Expand Up @@ -672,7 +672,7 @@ func TestCompressOnResume(t *testing.T) {

// we need to wait a little bit since the files get compressed on a different
// goroutine.
<-time.After(10 * time.Millisecond)
<-time.After(300 * time.Millisecond)

// The write should have started the compression - a compressed version of
// the log file should now exist and the original should have been removed.
Expand Down

0 comments on commit 7d6a187

Please sign in to comment.