Merge pull request #17348 from askb/17243_flaykytest_TestExecAfterContainerRestart

Fix for #17243 DockerSuite.TestExecAfterContainerRestart.
This commit is contained in:
Doug Davis 2015-10-25 13:25:21 -04:00
Родитель 5bcd6aba4b 2a5f04dcc9
Коммит 029e7ae4e0
1 изменённых файлов: 2 добавлений и 0 удалений

Просмотреть файл

@ -82,7 +82,9 @@ func (s *DockerSuite) TestExecAfterContainerRestart(c *check.C) {
testRequires(c, DaemonIsLinux)
out, _ := dockerCmd(c, "run", "-d", "busybox", "top")
cleanedContainerID := strings.TrimSpace(out)
c.Assert(waitRun(cleanedContainerID), check.IsNil)
dockerCmd(c, "restart", cleanedContainerID)
c.Assert(waitRun(cleanedContainerID), check.IsNil)
out, _ = dockerCmd(c, "exec", cleanedContainerID, "echo", "hello")
outStr := strings.TrimSpace(out)