From 6f991ec78a3f021a17176b8eaedd8514ae009229 Mon Sep 17 00:00:00 2001 From: Cameron Sparr Date: Wed, 1 Jun 2016 15:49:32 +0100 Subject: [PATCH] Sleep longer in tail test --- plugins/inputs/tail/tail_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/inputs/tail/tail_test.go b/plugins/inputs/tail/tail_test.go index 5d7c04a88..f9f6bff28 100644 --- a/plugins/inputs/tail/tail_test.go +++ b/plugins/inputs/tail/tail_test.go @@ -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{}{