Skip to content

Commit

Permalink
check err
Browse files Browse the repository at this point in the history
Signed-off-by: odubajDT <[email protected]>
  • Loading branch information
odubajDT committed Nov 20, 2024
1 parent c6bde37 commit a7de50e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion receiver/zipkinreceiver/factory_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ func TestCreateReceiverDeprecatedWarning(t *testing.T) {
set := receivertest.NewNopSettings()
set.Logger = logger

_, _ = createTracesReceiver(
_, err := createTracesReceiver(
context.Background(),
set,
cfg,
consumertest.NewNop(),
)

assert.NoError(t, err)

logOutput := buffer.String()
if !bytes.Contains([]byte(logOutput), []byte(deprecationConfigMsg)) {
t.Errorf("Expected log message not found. Got: %s", logOutput)
Expand Down

0 comments on commit a7de50e

Please sign in to comment.