From 75b60fd296c00c7e4e46ea173f2ae8bd9f917f0b Mon Sep 17 00:00:00 2001 From: Zettat123 Date: Wed, 29 Oct 2025 16:33:11 -0600 Subject: [PATCH] update test --- tests/integration/actions_rerun_test.go | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/tests/integration/actions_rerun_test.go b/tests/integration/actions_rerun_test.go index f5ef12f4ea..690d661e6c 100644 --- a/tests/integration/actions_rerun_test.go +++ b/tests/integration/actions_rerun_test.go @@ -58,6 +58,11 @@ jobs: runner.execTask(t, job1Task, &mockTaskOutcome{ result: runnerv1.Result_RESULT_SUCCESS, }) + // RERUN-FAILURE: the run is not done + req := NewRequestWithValues(t, "POST", fmt.Sprintf("/%s/%s/actions/runs/%d/rerun", user2.Name, repo.Name, run.Index), map[string]string{ + "_csrf": GetUserCSRFToken(t, session), + }) + session.MakeRequest(t, req, http.StatusBadRequest) // fetch and exec job2 job2Task := runner.fetchTask(t) runner.execTask(t, job2Task, &mockTaskOutcome{ @@ -65,7 +70,7 @@ jobs: }) // RERUN-1: rerun the run - req := NewRequestWithValues(t, "POST", fmt.Sprintf("/%s/%s/actions/runs/%d/rerun", user2.Name, repo.Name, run.Index), map[string]string{ + req = NewRequestWithValues(t, "POST", fmt.Sprintf("/%s/%s/actions/runs/%d/rerun", user2.Name, repo.Name, run.Index), map[string]string{ "_csrf": GetUserCSRFToken(t, session), }) session.MakeRequest(t, req, http.StatusOK)