Skip to content

Commit

Permalink
Fix intermittent TestTailBadLine failures (influxdata#3869)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbliznikova authored and danielnelson committed Mar 8, 2018
1 parent f7207f5 commit 8005883
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/inputs/tail/tail_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 8005883

Please sign in to comment.