improve unit test log

pull/8198/head
Medya Gh 2020-05-18 18:17:45 -07:00
parent 2f2a8357a8
commit 80d1c8741d
2 changed files with 1 additions and 4 deletions

View File

@ -290,7 +290,7 @@ func TestStartHostConfig(t *testing.T) {
for i := range h.HostOptions.EngineOptions.Env {
if h.HostOptions.EngineOptions.Env[i] != cfg.DockerEnv[i] {
t.Fatal("Docker env variables were not set!")
t.Fatalf("Docker env variables were not set! got %+v but want %+v",h.HostOptions.EngineOptions.Env,cfg.DockerEnv)
}
}

View File

@ -107,9 +107,6 @@ func engineOptions(cfg config.ClusterConfig) *engine.Options {
}
}
// config.DockerEnv is a global so we update that one too
config.DockerEnv = uniqueEnvs
o := engine.Options{
Env: uniqueEnvs,
InsecureRegistry: append([]string{constants.DefaultServiceCIDR}, cfg.InsecureRegistry...),