mongodb input: fix version 2.2 panic

closes #1628
This commit is contained in:
Cameron Sparr
2016-09-06 11:34:57 +01:00
parent 6b1cc67664
commit 2fe427b3b3
4 changed files with 8 additions and 7 deletions

View File

@@ -118,7 +118,7 @@ func TestRandomSleep(t *testing.T) {
s = time.Now()
RandomSleep(time.Millisecond*50, make(chan struct{}))
elapsed = time.Since(s)
assert.True(t, elapsed < time.Millisecond*50)
assert.True(t, elapsed < time.Millisecond*100)
// test that shutdown is respected
s = time.Now()