mirror of
https://github.com/moby/moby.git
synced 2022-11-09 12:21:53 -05:00
Fixing statusCode checks for sockRequest
Signed-off-by: Megan Kostick <mkostick@us.ibm.com>
This commit is contained in:
parent
b830b823cd
commit
c7845e27ee
12 changed files with 165 additions and 199 deletions
|
@ -10,10 +10,9 @@ import (
|
|||
func (s *DockerSuite) TestInfoApi(c *check.C) {
|
||||
endpoint := "/info"
|
||||
|
||||
statusCode, body, err := sockRequest("GET", endpoint, nil)
|
||||
if err != nil || statusCode != http.StatusOK {
|
||||
c.Fatalf("Expected %d from info request, got %d", http.StatusOK, statusCode)
|
||||
}
|
||||
status, body, err := sockRequest("GET", endpoint, nil)
|
||||
c.Assert(status, check.Equals, http.StatusOK)
|
||||
c.Assert(err, check.IsNil)
|
||||
|
||||
// always shown fields
|
||||
stringsToCheck := []string{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue