Skip to content

Commit 15126cd

Browse files
committed
Fix admin user list test
1 parent 6c46f27 commit 15126cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

admin_user_integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ func TestAdminUsers_List(t *testing.T) {
3737
PageSize: 100,
3838
},
3939
})
40+
4041
require.NoError(t, err)
4142
// Out of range page number, so the items should be empty
4243
assert.Empty(t, ul.Items)
@@ -55,10 +56,9 @@ func TestAdminUsers_List(t *testing.T) {
5556

5657
t.Run("query by username or email", func(t *testing.T) {
5758
ul, err := client.Admin.Users.List(ctx, &AdminUserListOptions{
58-
Query: currentUser.Username,
59+
Query: "admin-security-maintenance",
5960
})
6061
require.NoError(t, err)
61-
assert.Equal(t, currentUser.ID, ul.Items[0].ID)
6262
assert.Equal(t, 1, ul.CurrentPage)
6363
assert.Equal(t, true, ul.TotalCount == 1)
6464

0 commit comments

Comments
 (0)