Sleep longer in tail test

This commit is contained in:
Cameron Sparr 2016-06-01 15:49:32 +01:00
parent 7921d87a45
commit 6f991ec78a
1 changed files with 2 additions and 1 deletions

View File

@ -32,7 +32,8 @@ func TestTailFromBeginning(t *testing.T) {
_, err = tmpfile.WriteString("cpu,mytag=foo usage_idle=100\n")
require.NoError(t, err)
require.NoError(t, tt.Gather(&acc))
time.Sleep(time.Millisecond * 50)
// arbitrary sleep to wait for message to show up
time.Sleep(time.Millisecond * 250)
acc.AssertContainsTaggedFields(t, "cpu",
map[string]interface{}{