mirror of
https://github.com/genuinetools/reg.git
synced 2024-08-21 14:20:23 -04:00
16 lines
467 B
Go
16 lines
467 B
Go
package daemon // import "github.com/docker/docker/daemon"
|
|
|
|
import (
|
|
"testing"
|
|
|
|
containertypes "github.com/docker/docker/api/types/container"
|
|
)
|
|
|
|
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)
|
|
}
|
|
}
|