Skip to content

Commit

Permalink
test: improve test
Browse files Browse the repository at this point in the history
  • Loading branch information
diegoclair committed Aug 16, 2024
1 parent 3a9fc6a commit 0d6ef13
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions transport/rest/routes/authroute/handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ func TestHandler_handleRefreshToken(t *testing.T) {
for _, tt := range tests {
t.Run(tt.name, func(t *testing.T) {
authroute.Once = sync.Once{}
authMock, server, ctrl := test.GetServerTest(t)
m, server, ctrl := test.GetServerTest(t)
defer ctrl.Finish()

recorder := httptest.NewRecorder()
Expand All @@ -400,7 +400,7 @@ func TestHandler_handleRefreshToken(t *testing.T) {
ctx := test.GetTestContext(t, req, recorder, false)

if tt.buildMocks != nil {
tt.buildMocks(ctx, authMock, tt.args)
tt.buildMocks(ctx, m, tt.args)
}

req.Header.Set(echo.HeaderContentType, echo.MIMEApplicationJSON)
Expand Down

0 comments on commit 0d6ef13

Please sign in to comment.