Skip to content

Commit

Permalink
Fix test failure in api
Browse files Browse the repository at this point in the history
- Happened during merge

Signed-off-by: Alessandro Boch <aboch@docker.com>
  • Loading branch information
aboch committed May 21, 2015
1 parent 4a6f3c2 commit 1bf2e96
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions api/api_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,9 @@ func TestCreateDeleteNetwork(t *testing.T) {
if errRsp == &createdResponse {
t.Fatalf("Expected to fail but succeeded")
}
if errRsp.StatusCode != http.StatusBadRequest {
t.Fatalf("Expected StatusBadRequest status code, got: %v", errRsp)
}

incompleteBody, err := json.Marshal(networkCreate{})
if err != nil {
Expand All @@ -177,8 +180,8 @@ func TestCreateDeleteNetwork(t *testing.T) {
if errRsp == &createdResponse {
t.Fatalf("Expected to fail but succeeded")
}
if errRsp.StatusCode != http.StatusNotFound {
t.Fatalf("Expected StatusNotFound status code, got: %v", errRsp)
if errRsp.StatusCode != http.StatusBadRequest {
t.Fatalf("Expected StatusBadRequest status code, got: %v", errRsp)
}

ops := make(map[string]interface{})
Expand Down

0 comments on commit 1bf2e96

Please sign in to comment.