diff options
author | Lauris BH <lauris@nix.lv> | 2021-01-16 06:55:17 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-16 12:55:17 +0800 |
commit | 0a3c3357f388cc60d5f43a056ee2381e51586cff (patch) | |
tree | aff5abc553a1f417c943802c0f2e7d21aab8305f /models/issue_test.go | |
parent | 2db4733c7d75b3ca3d1b2750f7b6ed53ac75303c (diff) | |
download | gitea-0a3c3357f388cc60d5f43a056ee2381e51586cff.tar.gz gitea-0a3c3357f388cc60d5f43a056ee2381e51586cff.zip |
Sort issue search results by revelance (#14353)
Diffstat (limited to 'models/issue_test.go')
-rw-r--r-- | models/issue_test.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/issue_test.go b/models/issue_test.go index 1f65cb433a..8fbc49a46d 100644 --- a/models/issue_test.go +++ b/models/issue_test.go @@ -299,7 +299,7 @@ func TestIssue_SearchIssueIDsByKeyword(t *testing.T) { total, ids, err = SearchIssueIDsByKeyword("for", []int64{1}, 10, 0) assert.NoError(t, err) assert.EqualValues(t, 5, total) - assert.EqualValues(t, []int64{1, 2, 3, 5, 11}, ids) + assert.ElementsMatch(t, []int64{1, 2, 3, 5, 11}, ids) // issue1's comment id 2 total, ids, err = SearchIssueIDsByKeyword("good", []int64{1}, 10, 0) |