@@ -155,13 +155,13 @@ func TestSearchUsers(t *testing.T) {
155155 }
156156
157157 testUserSuccess (user_model.SearchUserOptions {OrderBy : "id ASC" , ListOptions : db.ListOptions {Page : 1 }},
158- []int64 {1 , 2 , 4 , 5 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 18 , 20 , 21 , 24 , 27 , 28 , 29 , 30 , 32 , 34 , 37 , 38 , 39 , 40 })
158+ []int64 {1 , 2 , 4 , 5 , 8 , 9 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 18 , 20 , 21 , 24 , 27 , 28 , 29 , 30 , 32 , 34 , 37 , 38 , 39 , 40 , 43 , 44 })
159159
160160 testUserSuccess (user_model.SearchUserOptions {ListOptions : db.ListOptions {Page : 1 }, IsActive : optional .Some (false )},
161161 []int64 {9 })
162162
163163 testUserSuccess (user_model.SearchUserOptions {OrderBy : "id ASC" , ListOptions : db.ListOptions {Page : 1 }, IsActive : optional .Some (true )},
164- []int64 {1 , 2 , 4 , 5 , 8 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 18 , 20 , 21 , 24 , 27 , 28 , 29 , 30 , 32 , 34 , 37 , 38 , 39 , 40 })
164+ []int64 {1 , 2 , 4 , 5 , 8 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 18 , 20 , 21 , 24 , 27 , 28 , 29 , 30 , 32 , 34 , 37 , 38 , 39 , 40 , 43 , 44 })
165165
166166 testUserSuccess (user_model.SearchUserOptions {Keyword : "user1" , OrderBy : "id ASC" , ListOptions : db.ListOptions {Page : 1 }, IsActive : optional .Some (true )},
167167 []int64 {1 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 18 })
@@ -171,7 +171,7 @@ func TestSearchUsers(t *testing.T) {
171171 []int64 {1 , 10 , 11 , 12 , 13 , 14 , 15 , 16 , 18 })
172172
173173 testUserSuccess (user_model.SearchUserOptions {ListOptions : db.ListOptions {Page : 1 }, IsAdmin : optional .Some (true )},
174- []int64 {1 })
174+ []int64 {1 , 43 })
175175
176176 testUserSuccess (user_model.SearchUserOptions {ListOptions : db.ListOptions {Page : 1 }, IsRestricted : optional .Some (true )},
177177 []int64 {29 })
0 commit comments