aboutsummaryrefslogtreecommitdiffstats
path: root/integrations/repo_search_test.go
diff options
context:
space:
mode:
authorzeripath <art27@cantab.net>2021-11-02 03:14:24 +0000
committerGitHub <noreply@github.com>2021-11-02 11:14:24 +0800
commitcb9c8184c9b0967e0b0fbc5eeedec4ba3ae4f020 (patch)
treefc53b76eb65345529a7ec435d7864601f3681337 /integrations/repo_search_test.go
parente2995ef515fcaa92c7a0c9611d5294e13cf2b875 (diff)
downloadgitea-cb9c8184c9b0967e0b0fbc5eeedec4ba3ae4f020.tar.gz
gitea-cb9c8184c9b0967e0b0fbc5eeedec4ba3ae4f020.zip
Make Repo Code Indexer an Unique Queue (#17515)
The functioning of the code indexer queue really only makes sense as an unique queue and doing this allows use to simplify the indexer data to simply delete the data if the repo is no longer in the db. Signed-off-by: Andrew Thornton <art27@cantab.net>
Diffstat (limited to 'integrations/repo_search_test.go')
-rw-r--r--integrations/repo_search_test.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/integrations/repo_search_test.go b/integrations/repo_search_test.go
index 6f2ee37460..56d89fee30 100644
--- a/integrations/repo_search_test.go
+++ b/integrations/repo_search_test.go
@@ -44,7 +44,6 @@ func TestSearchRepo(t *testing.T) {
repo, err = models.GetRepositoryByOwnerAndName("user2", "glob")
assert.NoError(t, err)
- executeIndexer(t, repo, code_indexer.DeleteRepoFromIndexer)
executeIndexer(t, repo, code_indexer.UpdateRepoIndexer)
testSearch(t, "/user2/glob/search?q=loren&page=1", []string{"a.txt"})