Signed-off-by: Anil Belur <askb23@gmail.com>
| ... | ... |
@@ -82,7 +82,9 @@ func (s *DockerSuite) TestExecAfterContainerRestart(c *check.C) {
|
| 82 | 82 |
testRequires(c, DaemonIsLinux) |
| 83 | 83 |
out, _ := dockerCmd(c, "run", "-d", "busybox", "top") |
| 84 | 84 |
cleanedContainerID := strings.TrimSpace(out) |
| 85 |
+ c.Assert(waitRun(cleanedContainerID), check.IsNil) |
|
| 85 | 86 |
dockerCmd(c, "restart", cleanedContainerID) |
| 87 |
+ c.Assert(waitRun(cleanedContainerID), check.IsNil) |
|
| 86 | 88 |
|
| 87 | 89 |
out, _ = dockerCmd(c, "exec", cleanedContainerID, "echo", "hello") |
| 88 | 90 |
outStr := strings.TrimSpace(out) |