Skip to content

Commit

Permalink
Merge pull request #138 from xmidt-org/fix-lint-issues
Browse files Browse the repository at this point in the history
Fix the newly identified lint issues.
  • Loading branch information
schmidtw authored Sep 22, 2023
2 parents 007b23f + 3e55fcd commit 3855006
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
4 changes: 3 additions & 1 deletion wrpclient/wrpclient_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,9 @@ func TestSendWRP(t *testing.T) {
client.httpClient = m
}

err = client.SendWRP(ctx, &tc.response, &tc.request)
response := tc.response
request := tc.request
err = client.SendWRP(ctx, &response, &request)
if tc.useMockHTTPClient {
m.AssertExpectations(t)
}
Expand Down
2 changes: 1 addition & 1 deletion wrphttp/headers.go
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ import (
// Constant HTTP header strings representing WRP fields
const (
MessageTypeHeader = "X-Xmidt-Message-Type"
TransactionUuidHeader = "X-Xmidt-Transaction-Uuid"
TransactionUuidHeader = "X-Xmidt-Transaction-Uuid" // nolint:gosec
StatusHeader = "X-Xmidt-Status"
RequestDeliveryResponseHeader = "X-Xmidt-Request-Delivery-Response"
IncludeSpansHeader = "X-Xmidt-Include-Spans"
Expand Down
3 changes: 2 additions & 1 deletion wrphttp/headers_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,8 @@ func TestAddMessageHeaders(t *testing.T) {

expected := record.expected
actual := make(http.Header)
AddMessageHeaders(actual, &record.message)
message := record.message
AddMessageHeaders(actual, &message)

for _, header := range regularHeaders {
assert.Equal(expected[header], actual[header])
Expand Down

0 comments on commit 3855006

Please sign in to comment.