mirror of
https://github.com/docker/docs.git
synced 2026-03-27 22:38:54 +07:00
Signed-off-by: Brian Goff <cpuguy83@gmail.com> (cherry picked from commit 7dff31064824ed1f9b046fe5c29bd707e663ee0b) Signed-off-by: Tibor Vass <tibor@docker.com>
16 lines
423 B
Go
16 lines
423 B
Go
package daemon
|
|
|
|
import (
|
|
"testing"
|
|
|
|
containertypes "github.com/docker/engine-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)
|
|
}
|
|
}
|