diff options
author | Jason Song <i@wolfogre.com> | 2023-10-16 02:56:57 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-10-15 18:56:57 +0000 |
commit | 1be49fdda660bce8d33cbd52f9a04629f1878d8f (patch) | |
tree | a1d2ff8a682c95984ac6c8f03318521dc4cf9371 /tests/integration | |
parent | cddf245c12223c783c856c87c21cc796ac425439 (diff) | |
download | gitea-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.go | 3 |
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) |