Skip to content

Commit

Permalink
fixing journal test
Browse files Browse the repository at this point in the history
  • Loading branch information
slim-bean committed Jul 3, 2020
1 parent 01f3a04 commit 9ba49fc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/promtail/targets/journal/journaltarget_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func TestJournalTarget_JSON(t *testing.T) {
expectMsg := `{"CODE_FILE":"journaltarget_test.go","MESSAGE":"ping","OTHER_FIELD":"foobar"}`

require.Greater(t, len(client.Messages), 0)
require.Equal(t, expectMsg, client.Messages[len(client.Messages)-1])
require.Equal(t, expectMsg, client.Messages[len(client.Messages)-1].Log)
}

assert.Len(t, client.Messages, 10)
Expand Down

0 comments on commit 9ba49fc

Please sign in to comment.