github.com/morganxf/moby@v1.13.1/daemon/logs_test.go (about)

     1  package daemon
     2  
     3  import (
     4  	"testing"
     5  
     6  	containertypes "github.com/docker/docker/api/types/container"
     7  )
     8  
     9  func TestMergeAndVerifyLogConfigNilConfig(t *testing.T) {
    10  	d := &Daemon{defaultLogConfig: containertypes.LogConfig{Type: "json-file", Config: map[string]string{"max-file": "1"}}}
    11  	cfg := containertypes.LogConfig{Type: d.defaultLogConfig.Type}
    12  	if err := d.mergeAndVerifyLogConfig(&cfg); err != nil {
    13  		t.Fatal(err)
    14  	}
    15  }