improve unit test log
parent
2f2a8357a8
commit
80d1c8741d
|
@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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...),
|
||||
|
|
Loading…
Reference in New Issue