From c91a622a773de8f3daec33bc58c3bf079da1d86d Mon Sep 17 00:00:00 2001 From: Leonard Goodell Date: Wed, 27 Jul 2022 15:39:53 -0600 Subject: [PATCH] fix: Addressed liner issues in unit test Signed-off-by: Leonard Goodell --- internal/core/metadata/application/device_test.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/internal/core/metadata/application/device_test.go b/internal/core/metadata/application/device_test.go index 925cc0b814..8541c7ba0c 100644 --- a/internal/core/metadata/application/device_test.go +++ b/internal/core/metadata/application/device_test.go @@ -121,7 +121,11 @@ func TestPublishDeviceSystemEvent(t *testing.T) { } // Use CBOR to make sure publisher overrides with JSON properly + // lint:ignore SA1029 legacy + // nolint:staticcheck // See golangci-lint #741 ctx := context.WithValue(context.Background(), common.ContentType, common.ContentTypeCBOR) + // lint:ignore SA1029 legacy + // nolint:staticcheck // See golangci-lint #741 ctx = context.WithValue(ctx, common.CorrelationHeader, expectedCorrelationID) publishDeviceSystemEvent(test.Action, expectedDevice.ServiceName, expectedDevice, ctx, mockLogger, dic)