diff --git a/tests/integration/repo_merge_upstream_test.go b/tests/integration/repo_merge_upstream_test.go index 19992dc19d358..3fd100a25f8f0 100644 --- a/tests/integration/repo_merge_upstream_test.go +++ b/tests/integration/repo_merge_upstream_test.go @@ -73,7 +73,7 @@ func TestRepoMergeUpstream(t *testing.T) { } respMsg, _ := htmlDoc.Find(".ui.message:not(.positive)").Html() return strings.Contains(respMsg, `This branch is 1 commit behind user2/repo1:master`) - }, 5*time.Second, 100*time.Millisecond) + }, 10*time.Second, 200*time.Millisecond) // click the "sync fork" button req = NewRequestWithValues(t, "POST", mergeUpstreamLink, map[string]string{"_csrf": GetUserCSRFToken(t, session)}) @@ -88,8 +88,6 @@ func TestRepoMergeUpstream(t *testing.T) { req := NewRequestWithJSON(t, "PUT", fmt.Sprintf("/api/v1/repos/%s/%s/contents/%s", baseRepo.OwnerName, baseRepo.Name, "new-file.txt"), &api.UpdateFileOptions{ DeleteFileOptions: api.DeleteFileOptions{ FileOptions: api.FileOptions{ - BranchName: "master", - NewBranchName: "master", Message: "Update new-file.txt", }, SHA: "a4007b6679563f949751ed31bb371fdfb3194446", @@ -105,7 +103,7 @@ func TestRepoMergeUpstream(t *testing.T) { htmlDoc := NewHTMLParser(t, resp.Body) respMsg, _ := htmlDoc.Find(".ui.message:not(.positive)").Html() return strings.Contains(respMsg, `The base branch user2/repo1:master has new changes`) - }, 5*time.Second, 100*time.Millisecond) + }, 10*time.Second, 200*time.Millisecond) // and do the merge-upstream by API req = NewRequestWithJSON(t, "POST", fmt.Sprintf("/api/v1/repos/%s/test-repo-fork/merge-upstream", forkUser.Name), &api.MergeUpstreamRequest{ @@ -123,7 +121,7 @@ func TestRepoMergeUpstream(t *testing.T) { resp := session.MakeRequest(t, NewRequestf(t, "GET", "/%s/test-repo-fork/src/branch/fork-branch", forkUser.Name), http.StatusOK) htmlDoc := NewHTMLParser(t, resp.Body) return queryMergeUpstreamButtonLink(htmlDoc) == "" - }, 5*time.Second, 100*time.Millisecond) + }, 10*time.Second, 200*time.Millisecond) }) }) }