github.com/mforkel/docker-ce-i386@v17.12.1-ce-rc2+incompatible/components/engine/runconfig/hostconfig_windows_test.go (about)

     1  // +build windows
     2  
     3  package runconfig
     4  
     5  import (
     6  	"testing"
     7  
     8  	"github.com/docker/docker/api/types/container"
     9  )
    10  
    11  func TestValidatePrivileged(t *testing.T) {
    12  	expected := "Windows does not support privileged mode"
    13  	err := validatePrivileged(&container.HostConfig{Privileged: true})
    14  	if err == nil || err.Error() != expected {
    15  		t.Fatalf("Expected %s", expected)
    16  	}
    17  }