Skip to content

Commit

Permalink
refactor: Fix authorization error in updateClientPolicy
Browse files Browse the repository at this point in the history
Signed-off-by: JeffMboya <jangina.mboya@gmail.com>
  • Loading branch information
JeffMboya committed May 21, 2024
1 parent d519516 commit 6b7d335
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions users/service_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -1106,10 +1106,10 @@ func TestUpdateClientRole(t *testing.T) {
{
desc: "Update client role for non-existent user",
client: mgclients.Client{},
identifyResponse: &magistrala.IdentityRes{},
identifyErr: svcerr.ErrNotFound,
token: validToken,
err: svcerr.ErrNotFound,
identifyResponse: &magistrala.IdentityRes{},
identifyErr: svcerr.ErrAuthorization,
err: svcerr.ErrAuthorization,
},
}

Expand Down

0 comments on commit 6b7d335

Please sign in to comment.