Skip to content

Commit 7988b9e

Browse files
author
Fabio Stabile
committed
Reset tests
1 parent 63ffa35 commit 7988b9e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

internal/cmd/deploy/trigger_test.go

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,6 @@ func TestDeploy(t *testing.T) {
4141
server: testTriggerServer(t),
4242
projectID: "correct",
4343
},
44-
"pipeline failed": {
45-
server: testTriggerServer(t),
46-
projectID: "failed",
47-
expectErr: true,
48-
},
4944
"pipeline fails": {
5045
server: testTriggerServer(t),
5146
projectID: "fails-bad-request",
@@ -87,7 +82,7 @@ func testTriggerServer(t *testing.T) *httptest.Server {
8782
server := httptest.NewServer(http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) {
8883
t.Helper()
8984
switch {
90-
case r.Method == http.MethodPost && (r.URL.Path == fmt.Sprintf(deployProjectEndpointTemplate, "correct") || r.URL.Path == fmt.Sprintf(deployProjectEndpointTemplate, "fails-wait-status") || r.URL.Path == fmt.Sprintf(deployProjectEndpointTemplate, "failed")):
85+
case r.Method == http.MethodPost && (r.URL.Path == fmt.Sprintf(deployProjectEndpointTemplate, "correct") || r.URL.Path == fmt.Sprintf(deployProjectEndpointTemplate, "fails-wait-status")):
9186
data, err := resources.EncodeResourceToJSON(&resources.DeployProject{
9287
ID: 1,
9388
URL: "http://example.com",

0 commit comments

Comments
 (0)