0
0
mirror of https://github.com/go-gitea/gitea.git synced 2025-11-02 17:44:07 +01:00

update test

This commit is contained in:
Zettat123 2025-10-29 16:33:11 -06:00
parent 116e21f764
commit 75b60fd296

View File

@ -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)