Skip to content

Commit

Permalink
Fix the newly identified lint issues.
Browse files Browse the repository at this point in the history
  • Loading branch information
schmidtw committed Sep 22, 2023
1 parent 007b23f commit 3e55fcd
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 3e55fcd

Please sign in to comment.