|
@@ -232,10 +232,10 @@ func (s *DockerSuite) TestEventsStreaming(c *check.C) {
|
|
|
containerID := strings.TrimSpace(out)
|
|
|
|
|
|
testActions := map[string]chan bool{
|
|
|
- "create": make(chan bool),
|
|
|
- "start": make(chan bool),
|
|
|
- "die": make(chan bool),
|
|
|
- "destroy": make(chan bool),
|
|
|
+ "create": make(chan bool, 1),
|
|
|
+ "start": make(chan bool, 1),
|
|
|
+ "die": make(chan bool, 1),
|
|
|
+ "destroy": make(chan bool, 1),
|
|
|
}
|
|
|
|
|
|
matcher := matchEventLine(containerID, "container", testActions)
|
|
@@ -291,8 +291,8 @@ func (s *DockerSuite) TestEventsImageUntagDelete(c *check.C) {
|
|
|
c.Assert(deleteImages(name), checker.IsNil)
|
|
|
|
|
|
testActions := map[string]chan bool{
|
|
|
- "untag": make(chan bool),
|
|
|
- "delete": make(chan bool),
|
|
|
+ "untag": make(chan bool, 1),
|
|
|
+ "delete": make(chan bool, 1),
|
|
|
}
|
|
|
|
|
|
matcher := matchEventLine(imageID, "image", testActions)
|