From 7d6a1875575e09256dc552b4c0e450dcd02bd10e Mon Sep 17 00:00:00 2001 From: Nate Finch Date: Fri, 17 Aug 2018 10:57:47 -0400 Subject: [PATCH] Fix test timing (#64) fix test timeout on CI --- lumberjack_test.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lumberjack_test.go b/lumberjack_test.go index 58e165f..484ee9d 100644 --- a/lumberjack_test.go +++ b/lumberjack_test.go @@ -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) @@ -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. @@ -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.