Skip to content

Commit

Permalink
fix: Addressed linter 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 ac32090
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 ac32090

Please sign in to comment.