mirror of
https://github.com/clearlinux/docker.git
synced 2026-09-06 21:51:33 +00:00
Fixing statusCode checks for sockRequest
Signed-off-by: Megan Kostick <mkostick@us.ibm.com>
This commit is contained in:
@@ -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{
|
||||
|
||||
Reference in New Issue
Block a user