Fix intermittent TestTailBadLine failures (#3869)
This commit is contained in:
parent
b8c4a6bb39
commit
fe78df3ba0
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue