1
0
Fork 0
mirror of https://github.com/moby/moby.git synced 2022-11-09 12:21:53 -05:00

Merge pull request #17073 from ZJaffee/api_events_test

Cleaned up integration-cli/docker_api_events_test.go
This commit is contained in:
Vincent Demeester 2015-10-16 00:22:29 +02:00
commit 1052ff674c

View file

@ -4,6 +4,7 @@ import (
"net/http"
"time"
"github.com/docker/docker/pkg/integration/checker"
"github.com/go-check/check"
)
@ -21,8 +22,8 @@ func (s *DockerSuite) TestEventsApiEmptyOutput(c *check.C) {
select {
case r := <-chResp:
c.Assert(r.err, check.IsNil)
c.Assert(r.resp.StatusCode, check.Equals, http.StatusOK)
c.Assert(r.err, checker.IsNil)
c.Assert(r.resp.StatusCode, checker.Equals, http.StatusOK)
case <-time.After(3 * time.Second):
c.Fatal("timeout waiting for events api to respond, should have responded immediately")
}