mirror of https://github.com/docker/docs.git
Cleaned up integration-cli/docker_api_events_test.go
Signed-off-by: Zachary Jaffee <zij@case.edu>
This commit is contained in:
parent
9216b08536
commit
176d8c5a14
|
@ -4,6 +4,7 @@ import (
|
||||||
"net/http"
|
"net/http"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
|
"github.com/docker/docker/pkg/integration/checker"
|
||||||
"github.com/go-check/check"
|
"github.com/go-check/check"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -21,8 +22,8 @@ func (s *DockerSuite) TestEventsApiEmptyOutput(c *check.C) {
|
||||||
|
|
||||||
select {
|
select {
|
||||||
case r := <-chResp:
|
case r := <-chResp:
|
||||||
c.Assert(r.err, check.IsNil)
|
c.Assert(r.err, checker.IsNil)
|
||||||
c.Assert(r.resp.StatusCode, check.Equals, http.StatusOK)
|
c.Assert(r.resp.StatusCode, checker.Equals, http.StatusOK)
|
||||||
case <-time.After(3 * time.Second):
|
case <-time.After(3 * time.Second):
|
||||||
c.Fatal("timeout waiting for events api to respond, should have responded immediately")
|
c.Fatal("timeout waiting for events api to respond, should have responded immediately")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue