7dff3106 | package daemon import ( "testing" |
91e197d6 | containertypes "github.com/docker/docker/api/types/container" |
7dff3106 | ) func TestMergeAndVerifyLogConfigNilConfig(t *testing.T) { d := &Daemon{defaultLogConfig: containertypes.LogConfig{Type: "json-file", Config: map[string]string{"max-file": "1"}}} cfg := containertypes.LogConfig{Type: d.defaultLogConfig.Type} if err := d.mergeAndVerifyLogConfig(&cfg); err != nil { t.Fatal(err) } } |