Skip to content

Commit

Permalink
fixed golint memory aliasing error
Browse files Browse the repository at this point in the history
  • Loading branch information
maurafortino committed Sep 22, 2023
1 parent 19128a6 commit 253bba5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions WRPHandler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -83,8 +83,8 @@ func TestFanoutRequest(t *testing.T) {
Original: r,
Entity: testCase.Entity,
}

mockWRPAccessAuthority.On("authorizeWRP", r.Context(), &testCase.Entity.Message).Return(testCase.Modify, testCase.Err)
m := testCase.Entity.Message
mockWRPAccessAuthority.On("authorizeWRP", r.Context(), &m).Return(testCase.Modify, testCase.Err)

wrpFanoutHandler.ServeWRP(wrpResponseWriter, wrpRequest)

Expand Down

0 comments on commit 253bba5

Please sign in to comment.