Skip to content

Commit 6e6de96

Browse files
committed
update check timer for tests
1 parent b26c356 commit 6e6de96

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

tests/integration/repo_merge_upstream_test.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ func TestRepoMergeUpstream(t *testing.T) {
7373
}
7474
respMsg, _ := htmlDoc.Find(".ui.message:not(.positive)").Html()
7575
return strings.Contains(respMsg, `This branch is 1 commit behind <a href="/user2/repo1/src/branch/master">user2/repo1:master</a>`)
76-
}, 5*time.Second, 100*time.Millisecond)
76+
}, 10*time.Second, 200*time.Millisecond)
7777

7878
// click the "sync fork" button
7979
req = NewRequestWithValues(t, "POST", mergeUpstreamLink, map[string]string{"_csrf": GetUserCSRFToken(t, session)})
@@ -105,7 +105,7 @@ func TestRepoMergeUpstream(t *testing.T) {
105105
htmlDoc := NewHTMLParser(t, resp.Body)
106106
respMsg, _ := htmlDoc.Find(".ui.message:not(.positive)").Html()
107107
return strings.Contains(respMsg, `The base branch <a href="/user2/repo1/src/branch/master">user2/repo1:master</a> has new changes`)
108-
}, 5*time.Second, 100*time.Millisecond)
108+
}, 10*time.Second, 200*time.Millisecond)
109109

110110
// and do the merge-upstream by API
111111
req = NewRequestWithJSON(t, "POST", fmt.Sprintf("/api/v1/repos/%s/test-repo-fork/merge-upstream", forkUser.Name), &api.MergeUpstreamRequest{
@@ -123,7 +123,7 @@ func TestRepoMergeUpstream(t *testing.T) {
123123
resp := session.MakeRequest(t, NewRequestf(t, "GET", "/%s/test-repo-fork/src/branch/fork-branch", forkUser.Name), http.StatusOK)
124124
htmlDoc := NewHTMLParser(t, resp.Body)
125125
return queryMergeUpstreamButtonLink(htmlDoc) == ""
126-
}, 5*time.Second, 100*time.Millisecond)
126+
}, 10*time.Second, 200*time.Millisecond)
127127
})
128128
})
129129
}

0 commit comments

Comments
 (0)