@@ -57,7 +57,7 @@ func searchIssueWithKeyword(t *testing.T) {
5757 Keyword : "issue2" ,
5858 RepoIDs : []int64 {1 },
5959 },
60- []int64 {2 },
60+ []int64 {2 , 23 },
6161 },
6262 {
6363 SearchOptions {
@@ -106,7 +106,7 @@ func searchIssueByIndex(t *testing.T) {
106106 Keyword : "2" ,
107107 RepoIDs : []int64 {1 , 2 , 3 , 32 },
108108 },
109- []int64 {17 , 12 , 7 , 2 },
109+ []int64 {17 , 12 , 7 , 2 , 23 },
110110 },
111111 {
112112 SearchOptions {
@@ -133,7 +133,7 @@ func searchIssueInRepo(t *testing.T) {
133133 SearchOptions {
134134 RepoIDs : []int64 {1 },
135135 },
136- []int64 {11 , 5 , 3 , 2 , 1 },
136+ []int64 {11 , 5 , 3 , 2 , 23 , 1 },
137137 },
138138 {
139139 SearchOptions {
@@ -177,7 +177,7 @@ func searchIssueByID(t *testing.T) {
177177 opts : SearchOptions {
178178 PosterID : optional .Some (int64 (1 )),
179179 },
180- expectedIDs : []int64 {11 , 6 , 3 , 2 , 1 },
180+ expectedIDs : []int64 {11 , 6 , 3 , 2 , 23 , 1 },
181181 },
182182 {
183183 opts : SearchOptions {
@@ -188,7 +188,7 @@ func searchIssueByID(t *testing.T) {
188188 {
189189 // NOTE: This tests no assignees filtering and also ToSearchOptions() to ensure it will set AssigneeID to 0 when it is passed as -1.
190190 opts : * ToSearchOptions ("" , & issues.IssuesOptions {AssigneeID : optional .Some (db .NoConditionID )}),
191- expectedIDs : []int64 {22 , 21 , 16 , 15 , 14 , 13 , 12 , 11 , 20 , 5 , 19 , 18 , 10 , 7 , 4 , 9 , 8 , 3 , 2 },
191+ expectedIDs : []int64 {22 , 21 , 16 , 15 , 14 , 13 , 12 , 11 , 20 , 5 , 19 , 18 , 10 , 7 , 4 , 9 , 8 , 3 , 2 , 23 },
192192 },
193193 {
194194 opts : SearchOptions {
@@ -212,7 +212,7 @@ func searchIssueByID(t *testing.T) {
212212 opts : SearchOptions {
213213 SubscriberID : optional .Some (int64 (1 )),
214214 },
215- expectedIDs : []int64 {11 , 6 , 5 , 3 , 2 , 1 },
215+ expectedIDs : []int64 {11 , 6 , 5 , 3 , 2 , 23 , 1 },
216216 },
217217 {
218218 // issue 20 request user 15 and team 5 which user 15 belongs to
@@ -247,7 +247,7 @@ func searchIssueIsPull(t *testing.T) {
247247 SearchOptions {
248248 IsPull : optional .Some (false ),
249249 },
250- []int64 {17 , 16 , 15 , 14 , 13 , 6 , 5 , 18 , 10 , 7 , 4 , 1 },
250+ []int64 {17 , 16 , 15 , 14 , 13 , 6 , 5 , 18 , 10 , 7 , 4 , 23 , 1 },
251251 },
252252 {
253253 SearchOptions {
@@ -272,7 +272,7 @@ func searchIssueIsClosed(t *testing.T) {
272272 SearchOptions {
273273 IsClosed : optional .Some (false ),
274274 },
275- []int64 {22 , 21 , 17 , 16 , 15 , 14 , 13 , 12 , 11 , 20 , 6 , 19 , 18 , 10 , 7 , 9 , 8 , 3 , 2 , 1 },
275+ []int64 {22 , 21 , 17 , 16 , 15 , 14 , 13 , 12 , 11 , 20 , 6 , 19 , 18 , 10 , 7 , 9 , 8 , 3 , 2 , 23 , 1 },
276276 },
277277 {
278278 SearchOptions {
@@ -297,7 +297,7 @@ func searchIssueIsArchived(t *testing.T) {
297297 SearchOptions {
298298 IsArchived : optional .Some (false ),
299299 },
300- []int64 {22 , 21 , 17 , 16 , 15 , 13 , 12 , 11 , 20 , 6 , 5 , 19 , 18 , 10 , 7 , 4 , 9 , 8 , 3 , 2 , 1 },
300+ []int64 {22 , 21 , 17 , 16 , 15 , 13 , 12 , 11 , 20 , 6 , 5 , 19 , 18 , 10 , 7 , 4 , 9 , 8 , 3 , 2 , 23 , 1 },
301301 },
302302 {
303303 SearchOptions {
@@ -359,7 +359,7 @@ func searchIssueByLabelID(t *testing.T) {
359359 SearchOptions {
360360 ExcludedLabelIDs : []int64 {1 },
361361 },
362- []int64 {22 , 21 , 17 , 16 , 15 , 14 , 13 , 12 , 11 , 20 , 6 , 5 , 19 , 18 , 10 , 7 , 4 , 9 , 8 , 3 },
362+ []int64 {22 , 21 , 17 , 16 , 15 , 14 , 13 , 12 , 11 , 20 , 6 , 5 , 19 , 18 , 10 , 7 , 4 , 9 , 8 , 3 , 23 },
363363 },
364364 }
365365 for _ , test := range tests {
@@ -378,7 +378,7 @@ func searchIssueByTime(t *testing.T) {
378378 SearchOptions {
379379 UpdatedAfterUnix : optional .Some (int64 (0 )),
380380 },
381- []int64 {22 , 21 , 17 , 16 , 15 , 14 , 13 , 12 , 11 , 20 , 6 , 5 , 19 , 18 , 10 , 7 , 4 , 9 , 8 , 3 , 2 , 1 },
381+ []int64 {22 , 21 , 17 , 16 , 15 , 14 , 13 , 12 , 11 , 20 , 6 , 5 , 19 , 18 , 10 , 7 , 4 , 9 , 8 , 3 , 2 , 23 , 1 },
382382 },
383383 }
384384 for _ , test := range tests {
@@ -397,7 +397,7 @@ func searchIssueWithOrder(t *testing.T) {
397397 SearchOptions {
398398 SortBy : internal .SortByCreatedAsc ,
399399 },
400- []int64 {1 , 2 , 3 , 8 , 9 , 4 , 7 , 10 , 18 , 19 , 5 , 6 , 20 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 21 , 22 },
400+ []int64 {1 , 23 , 2 , 3 , 8 , 9 , 4 , 7 , 10 , 18 , 19 , 5 , 6 , 20 , 11 , 12 , 13 , 14 , 15 , 16 , 17 , 21 , 22 },
401401 },
402402 }
403403 for _ , test := range tests {
@@ -451,7 +451,7 @@ func searchIssueWithPaginator(t *testing.T) {
451451 },
452452 },
453453 []int64 {22 , 21 , 17 , 16 , 15 },
454- 22 ,
454+ 23 ,
455455 },
456456 }
457457 for _ , test := range tests {
0 commit comments