mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-02 15:10:43 +02:00
fix: assert correct status code
This commit is contained in:
1 parent
76f58ef2a6
commit
249e315d8a
1 file changed
+2
-2
@@ -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
|
||||||
|
|||||||
Reference in new issue
Block a user