summaryrefslogtreecommitdiffstats
path: root/tests/integration
diff options
context:
space:
mode:
authorJason Song <i@wolfogre.com>2023-10-16 02:56:57 +0800
committerGitHub <noreply@github.com>2023-10-15 18:56:57 +0000
commit1be49fdda660bce8d33cbd52f9a04629f1878d8f (patch)
treea1d2ff8a682c95984ac6c8f03318521dc4cf9371 /tests/integration
parentcddf245c12223c783c856c87c21cc796ac425439 (diff)
downloadgitea-1be49fdda660bce8d33cbd52f9a04629f1878d8f.tar.gz
gitea-1be49fdda660bce8d33cbd52f9a04629f1878d8f.zip
Improve retrying index issues (#27554)
Fix #27540
Diffstat (limited to 'tests/integration')
-rw-r--r--tests/integration/issue_test.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/integration/issue_test.go b/tests/integration/issue_test.go
index 853e565b0f..ac06b487db 100644
--- a/tests/integration/issue_test.go
+++ b/tests/integration/issue_test.go
@@ -4,6 +4,7 @@
package integration
import (
+ "context"
"fmt"
"net/http"
"net/url"
@@ -99,7 +100,7 @@ func TestViewIssuesKeyword(t *testing.T) {
RepoID: repo.ID,
Index: 1,
})
- issues.UpdateIssueIndexer(issue.ID)
+ issues.UpdateIssueIndexer(context.Background(), issue.ID)
time.Sleep(time.Second * 1)
const keyword = "first"
req := NewRequestf(t, "GET", "%s/issues?q=%s", repo.Link(), keyword)