1
0
mirror of https://github.com/moby/moby.git synced 2025-11-30 07:21:52 +03:00

Fixing statusCode checks for sockRequest

Signed-off-by: Megan Kostick <mkostick@us.ibm.com>
This commit is contained in:
Megan Kostick
2015-04-20 14:03:56 -07:00
parent b830b823cd
commit c7845e27ee
12 changed files with 165 additions and 199 deletions

View File

@@ -18,10 +18,6 @@ func (s *DockerSuite) TestExecResizeApiHeightWidthNoInt(c *check.C) {
endpoint := "/exec/" + cleanedContainerID + "/resize?h=foo&w=bar"
status, _, err := sockRequest("POST", endpoint, nil)
if err == nil {
c.Fatal("Expected exec resize Request to fail")
}
if status != http.StatusInternalServerError {
c.Fatalf("Status expected %d, got %d", http.StatusInternalServerError, status)
}
c.Assert(status, check.Equals, http.StatusInternalServerError)
c.Assert(err, check.IsNil)
}