From 253bba5e486ac5e5a2afcdbbd7657fd682f2f2fe Mon Sep 17 00:00:00 2001 From: maura fortino Date: Fri, 22 Sep 2023 09:39:17 -0400 Subject: [PATCH] fixed golint memory aliasing error --- WRPHandler_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/WRPHandler_test.go b/WRPHandler_test.go index c19769e..bf442c3 100644 --- a/WRPHandler_test.go +++ b/WRPHandler_test.go @@ -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)