summaryrefslogtreecommitdiffstats
path: root/modules/indexer/issues/indexer_test.go
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2021-01-16 06:55:17 +0200
committerGitHub <noreply@github.com>2021-01-16 12:55:17 +0800
commit0a3c3357f388cc60d5f43a056ee2381e51586cff (patch)
treeaff5abc553a1f417c943802c0f2e7d21aab8305f /modules/indexer/issues/indexer_test.go
parent2db4733c7d75b3ca3d1b2750f7b6ed53ac75303c (diff)
downloadgitea-0a3c3357f388cc60d5f43a056ee2381e51586cff.tar.gz
gitea-0a3c3357f388cc60d5f43a056ee2381e51586cff.zip
Sort issue search results by revelance (#14353)
Diffstat (limited to 'modules/indexer/issues/indexer_test.go')
-rw-r--r--modules/indexer/issues/indexer_test.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/indexer/issues/indexer_test.go b/modules/indexer/issues/indexer_test.go
index 95007d8faf..8c163f78d1 100644
--- a/modules/indexer/issues/indexer_test.go
+++ b/modules/indexer/issues/indexer_test.go
@@ -65,7 +65,7 @@ func TestBleveSearchIssues(t *testing.T) {
ids, err = SearchIssuesByKeyword([]int64{1}, "for")
assert.NoError(t, err)
- assert.EqualValues(t, []int64{1, 2, 3, 5, 11}, ids)
+ assert.ElementsMatch(t, []int64{1, 2, 3, 5, 11}, ids)
ids, err = SearchIssuesByKeyword([]int64{1}, "good")
assert.NoError(t, err)
@@ -89,7 +89,7 @@ func TestDBSearchIssues(t *testing.T) {
ids, err = SearchIssuesByKeyword([]int64{1}, "for")
assert.NoError(t, err)
- assert.EqualValues(t, []int64{1, 2, 3, 5, 11}, ids)
+ assert.ElementsMatch(t, []int64{1, 2, 3, 5, 11}, ids)
ids, err = SearchIssuesByKeyword([]int64{1}, "good")
assert.NoError(t, err)