Skip to content

Commit

Permalink
Fix observed logs test
Browse files Browse the repository at this point in the history
  • Loading branch information
r0mdau committed Nov 20, 2023
1 parent 158c9a1 commit 6ec83c2
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions exporter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,9 @@ func TestStartInvalidEndpointErrorLog(t *testing.T) {

assert.NoError(t, err)
assert.NotNil(t, exporter.client)
require.Equal(t, 2, observedLogs.Len())
require.Equal(t, 3, observedLogs.Len())

assert.Equal(t, "Creating the Fluent Forward exporter", observedLogs.All()[0].Message)
assert.Equal(t, "The fluentforward exporter failed to connect to its endpoint invalidEndpoint when starting", observedLogs.All()[1].Message)
assert.Equal(t, "Failed to connect to the endpoint invalidEndpoint", observedLogs.All()[1].Message)
assert.Equal(t, "Successfull connection to the endpoint invalidEndpoint", observedLogs.All()[2].Message)
}

0 comments on commit 6ec83c2

Please sign in to comment.