mirror of
https://github.com/go-gitea/gitea.git
synced 2025-08-09 23:22:00 +00:00
fix: assert correct status code
This commit is contained in:
parent
76f58ef2a6
commit
249e315d8a
@ -47,7 +47,7 @@ func TestWorkflowConcurrency(t *testing.T) {
|
|||||||
Value: "abc123",
|
Value: "abc123",
|
||||||
}).
|
}).
|
||||||
AddTokenAuth(token)
|
AddTokenAuth(token)
|
||||||
MakeRequest(t, req, http.StatusNoContent)
|
MakeRequest(t, req, http.StatusCreated)
|
||||||
|
|
||||||
wf1TreePath := ".gitea/workflows/concurrent-workflow-1.yml"
|
wf1TreePath := ".gitea/workflows/concurrent-workflow-1.yml"
|
||||||
wf1FileContent := `name: concurrent-workflow-1
|
wf1FileContent := `name: concurrent-workflow-1
|
||||||
@ -303,7 +303,7 @@ func TestJobConcurrency(t *testing.T) {
|
|||||||
Value: "v1.23.0",
|
Value: "v1.23.0",
|
||||||
}).
|
}).
|
||||||
AddTokenAuth(token)
|
AddTokenAuth(token)
|
||||||
MakeRequest(t, req, http.StatusNoContent)
|
MakeRequest(t, req, http.StatusCreated)
|
||||||
|
|
||||||
wf1TreePath := ".gitea/workflows/concurrent-workflow-1.yml"
|
wf1TreePath := ".gitea/workflows/concurrent-workflow-1.yml"
|
||||||
wf1FileContent := `name: concurrent-workflow-1
|
wf1FileContent := `name: concurrent-workflow-1
|
||||||
|
Loading…
Reference in New Issue
Block a user