Merge pull request #17332 from askb/17225_flakytest_TestExecEnv
Fix for the issue #17225 flaky test DockerSuite.TestExecEnv test case.
This commit is contained in:
commit
c71e97fc12
|
@ -129,6 +129,7 @@ func (s *DockerSuite) TestExecEnv(c *check.C) {
|
||||||
testRequires(c, DaemonIsLinux)
|
testRequires(c, DaemonIsLinux)
|
||||||
dockerCmd(c, "run", "-e", "LALA=value1", "-e", "LALA=value2",
|
dockerCmd(c, "run", "-e", "LALA=value1", "-e", "LALA=value2",
|
||||||
"-d", "--name", "testing", "busybox", "top")
|
"-d", "--name", "testing", "busybox", "top")
|
||||||
|
c.Assert(waitRun("testing"), check.IsNil)
|
||||||
|
|
||||||
out, _ := dockerCmd(c, "exec", "testing", "env")
|
out, _ := dockerCmd(c, "exec", "testing", "env")
|
||||||
if strings.Contains(out, "LALA=value1") ||
|
if strings.Contains(out, "LALA=value1") ||
|
||||||
|
|
Loading…
Reference in New Issue