]> source.dussan.org Git - gitea.git/commitdiff
2nd attempt at re-request APIMergePullRequest (#13468)
authorzeripath <art27@cantab.net>
Sun, 8 Nov 2020 19:23:00 +0000 (19:23 +0000)
committerGitHub <noreply@github.com>
Sun, 8 Nov 2020 19:23:00 +0000 (19:23 +0000)
Signed-off-by: Andrew Thornton <art27@cantab.net>
integrations/api_helper_for_declarative_test.go

index b0031ef3329980202b94b5d6d7dd9a05e99633b3..b8e513958e841c20f825100cd5464b4ffc9b352a 100644 (file)
@@ -235,6 +235,10 @@ func doAPIMergePullRequest(ctx APITestContext, owner, repo string, index int64)
                        DecodeJSON(t, resp, &err)
                        assert.EqualValues(t, "Please try again later", err.Message)
                        queue.GetManager().FlushAll(context.Background(), 5*time.Second)
+                       req = NewRequestWithJSON(t, http.MethodPost, urlStr, &auth.MergePullRequestForm{
+                               MergeMessageField: "doAPIMergePullRequest Merge",
+                               Do:                string(models.MergeStyleMerge),
+                       })
                        resp = ctx.Session.MakeRequest(t, req, NoExpectedStatus)
                }