mirror of
https://github.com/moby/moby.git
synced 2026-01-11 18:51:37 +00:00
Use testEnv methods and remove most of the global variables
Signed-off-by: Vincent Demeester <vincent@sbr.pm>
This commit is contained in:
@@ -67,7 +67,7 @@ func (s *DockerSuite) TestRmiImgIDMultipleTag(c *check.C) {
|
||||
|
||||
// Wait for it to exit as cannot commit a running container on Windows, and
|
||||
// it will take a few seconds to exit
|
||||
if daemonPlatform == "windows" {
|
||||
if testEnv.DaemonPlatform() == "windows" {
|
||||
err := waitExited(containerID, 60*time.Second)
|
||||
c.Assert(err, check.IsNil)
|
||||
}
|
||||
@@ -111,7 +111,7 @@ func (s *DockerSuite) TestRmiImgIDForce(c *check.C) {
|
||||
|
||||
// Wait for it to exit as cannot commit a running container on Windows, and
|
||||
// it will take a few seconds to exit
|
||||
if daemonPlatform == "windows" {
|
||||
if testEnv.DaemonPlatform() == "windows" {
|
||||
err := waitExited(containerID, 60*time.Second)
|
||||
c.Assert(err, check.IsNil)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user