From a7de50eb2ccb6c1218ba72be6005006d7ab2c951 Mon Sep 17 00:00:00 2001 From: odubajDT Date: Thu, 14 Nov 2024 11:15:36 +0100 Subject: [PATCH] check err Signed-off-by: odubajDT --- receiver/zipkinreceiver/factory_test.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/receiver/zipkinreceiver/factory_test.go b/receiver/zipkinreceiver/factory_test.go index b1e70db4d34a..593d848c3438 100644 --- a/receiver/zipkinreceiver/factory_test.go +++ b/receiver/zipkinreceiver/factory_test.go @@ -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)