Merge pull request #19430 from keloyang/StatsNoStreamGetCpu

remove the check of ContentLength in TestApiStatsNoStreamGetCpu
This commit is contained in:
Lei Jitang 2016-01-21 09:07:00 +08:00
commit bb8d8a645a
1 changed files with 1 additions and 1 deletions

View File

@ -27,7 +27,7 @@ func (s *DockerSuite) TestApiStatsNoStreamGetCpu(c *check.C) {
resp, body, err := sockRequestRaw("GET", fmt.Sprintf("/containers/%s/stats?stream=false", id), nil, "")
c.Assert(err, checker.IsNil)
c.Assert(resp.ContentLength, checker.GreaterThan, int64(0), check.Commentf("should not use chunked encoding"))
c.Assert(resp.StatusCode, checker.Equals, http.StatusOK)
c.Assert(resp.Header.Get("Content-Type"), checker.Equals, "application/json")
var v *types.Stats