mirror of https://github.com/docker/docs.git
Merge pull request #21183 from thaJeztah/fix-flaky-TestUpdateRestartPolicy
Fix flaky TestUpdateRestartPolicy on Windows
This commit is contained in:
commit
a30332e705
|
|
@ -12,7 +12,7 @@ func (s *DockerSuite) TestUpdateRestartPolicy(c *check.C) {
|
||||||
out, _ := dockerCmd(c, "run", "-d", "--restart=on-failure:3", "busybox", "sh", "-c", "sleep 1 && false")
|
out, _ := dockerCmd(c, "run", "-d", "--restart=on-failure:3", "busybox", "sh", "-c", "sleep 1 && false")
|
||||||
timeout := 60 * time.Second
|
timeout := 60 * time.Second
|
||||||
if daemonPlatform == "windows" {
|
if daemonPlatform == "windows" {
|
||||||
timeout = 150 * time.Second
|
timeout = 180 * time.Second
|
||||||
}
|
}
|
||||||
|
|
||||||
id := strings.TrimSpace(string(out))
|
id := strings.TrimSpace(string(out))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue