2
0

Fix test timing (#64)

fix test timeout on CI
This commit is contained in:
Nate Finch
2018-08-17 10:57:47 -04:00
committed by GitHub
parent aee4629129
commit 7d6a187557
+2 -2
View File
@@ -623,7 +623,7 @@ func TestCompressOnRotate(t *testing.T) {
// we need to wait a little bit since the files get compressed on a different // we need to wait a little bit since the files get compressed on a different
// goroutine. // goroutine.
<-time.After(10 * time.Millisecond) <-time.After(300 * time.Millisecond)
// a compressed version of the log file should now exist and the original // a compressed version of the log file should now exist and the original
// should have been removed. // 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 // we need to wait a little bit since the files get compressed on a different
// goroutine. // goroutine.
<-time.After(10 * time.Millisecond) <-time.After(300 * time.Millisecond)
// The write should have started the compression - a compressed version of // The write should have started the compression - a compressed version of
// the log file should now exist and the original should have been removed. // the log file should now exist and the original should have been removed.