aboutsummaryrefslogtreecommitdiffstats
path: root/integrations
diff options
context:
space:
mode:
authorLauris BH <lauris@nix.lv>2022-01-27 10:30:51 +0200
committerGitHub <noreply@github.com>2022-01-27 10:30:51 +0200
commit8038610a4279862a87e630e4f1d1077c510f9d15 (patch)
tree802489f8ddde899e76643ea157f9020f12ca1490 /integrations
parent2649eddcf0bb1190abab49c9d79ce19bfcf19e87 (diff)
downloadgitea-8038610a4279862a87e630e4f1d1077c510f9d15.tar.gz
gitea-8038610a4279862a87e630e4f1d1077c510f9d15.zip
Automatically pause queue if index service is unavailable (#15066)
* Handle keyword search error when issue indexer service is not available * Implement automatic disabling and resume of code indexer queue
Diffstat (limited to 'integrations')
-rw-r--r--integrations/repo_search_test.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/integrations/repo_search_test.go b/integrations/repo_search_test.go
index 0782988363..a1cc5811b9 100644
--- a/integrations/repo_search_test.go
+++ b/integrations/repo_search_test.go
@@ -17,10 +17,7 @@ import (
)
func resultFilenames(t testing.TB, doc *HTMLDoc) []string {
- resultsSelection := doc.doc.Find(".repository.search")
- assert.EqualValues(t, 1, resultsSelection.Length(),
- "Invalid template (repo search template has changed?)")
- filenameSelections := resultsSelection.Find(".repo-search-result").Find(".header").Find("span.file")
+ filenameSelections := doc.doc.Find(".repository.search").Find(".repo-search-result").Find(".header").Find("span.file")
result := make([]string, filenameSelections.Length())
filenameSelections.Each(func(i int, selection *goquery.Selection) {
result[i] = selection.Text()