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:
@@ -36,7 +36,7 @@ func (s *DockerSuite) TestAPIGetEnabledCORS(c *check.C) {
|
||||
}
|
||||
|
||||
func (s *DockerSuite) TestAPIClientVersionOldNotSupported(c *check.C) {
|
||||
if daemonPlatform != runtime.GOOS {
|
||||
if testEnv.DaemonPlatform() != runtime.GOOS {
|
||||
c.Skip("Daemon platform doesn't match test platform")
|
||||
}
|
||||
if api.MinVersion == api.DefaultVersion {
|
||||
|
||||
Reference in New Issue
Block a user