@@ -63,7 +63,10 @@ func TestSearchUsers(t *testing.T) {
63
63
testOrgSuccess (& SearchUserOptions {OrderBy : "id ASC" , Page : 2 , PageSize : 2 },
64
64
[]int64 {7 , 17 })
65
65
66
- testOrgSuccess (& SearchUserOptions {Page : 3 , PageSize : 2 },
66
+ testOrgSuccess (& SearchUserOptions {OrderBy : "id ASC" , Page : 3 , PageSize : 2 },
67
+ []int64 {19 })
68
+
69
+ testOrgSuccess (& SearchUserOptions {Page : 4 , PageSize : 2 },
67
70
[]int64 {})
68
71
69
72
// test users
@@ -73,13 +76,13 @@ func TestSearchUsers(t *testing.T) {
73
76
}
74
77
75
78
testUserSuccess (& SearchUserOptions {OrderBy : "id ASC" , Page : 1 },
76
- []int64 {1 , 2 , 4 , 5 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 18 })
79
+ []int64 {1 , 2 , 4 , 5 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 18 , 20 })
77
80
78
81
testUserSuccess (& SearchUserOptions {Page : 1 , IsActive : util .OptionalBoolFalse },
79
82
[]int64 {9 })
80
83
81
84
testUserSuccess (& SearchUserOptions {OrderBy : "id ASC" , Page : 1 , IsActive : util .OptionalBoolTrue },
82
- []int64 {1 , 2 , 4 , 5 , 8 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 18 })
85
+ []int64 {1 , 2 , 4 , 5 , 8 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 18 , 20 })
83
86
84
87
testUserSuccess (& SearchUserOptions {Keyword : "user1" , OrderBy : "id ASC" , Page : 1 , IsActive : util .OptionalBoolTrue },
85
88
[]int64 {1 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 18 })
0 commit comments