Chore: Remove CreateUserForTests() (#64125)
* Chore: Remove CreateUserForTests
* Apply suggestion from code review
(cherry picked from commit e6e8351ee9)
This commit is contained in:
@@ -77,7 +77,7 @@ func TestUserAPIEndpoint_userLoggedIn(t *testing.T) {
|
||||
Login: "loginuser",
|
||||
IsAdmin: true,
|
||||
}
|
||||
usr, err := userSvc.CreateUserForTests(context.Background(), &createUserCmd)
|
||||
usr, err := userSvc.Create(context.Background(), &createUserCmd)
|
||||
require.NoError(t, err)
|
||||
|
||||
sc.handlerFunc = hs.GetUserByID
|
||||
|
||||
Reference in New Issue
Block a user