Skip to content

Commit

Permalink
fix: Addressed liner issues in unit test
Browse files Browse the repository at this point in the history
Signed-off-by: Leonard Goodell <[email protected]>
  • Loading branch information
Leonard Goodell committed Jul 27, 2022
1 parent 4f5bbc7 commit c91a622
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions internal/core/metadata/application/device_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit c91a622

Please sign in to comment.