Fix intermittent TestTailBadLine failures (#3869)

This commit is contained in:
Margarita Bliznikova 2018-03-08 13:03:48 -08:00 committed by Daniel Nelson
parent b8c4a6bb39
commit fe78df3ba0
1 changed files with 1 additions and 1 deletions

View File

@ -103,10 +103,10 @@ func TestTailBadLine(t *testing.T) {
acc := testutil.Accumulator{}
require.NoError(t, tt.Start(&acc))
require.NoError(t, acc.GatherError(tt.Gather))
_, err = tmpfile.WriteString("cpu mytag= foo usage_idle= 100\n")
require.NoError(t, err)
require.NoError(t, acc.GatherError(tt.Gather))
acc.WaitError(1)
assert.Contains(t, acc.Errors[0].Error(), "E! Malformed log line")