686be57d0a
Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
18 lines
429 B
Go
18 lines
429 B
Go
//go:build windows
|
|
// +build windows
|
|
|
|
package runconfig // import "github.com/docker/docker/runconfig"
|
|
|
|
import (
|
|
"testing"
|
|
|
|
"github.com/docker/docker/api/types/container"
|
|
)
|
|
|
|
func TestValidatePrivileged(t *testing.T) {
|
|
expected := "Windows does not support privileged mode"
|
|
err := validatePrivileged(&container.HostConfig{Privileged: true})
|
|
if err == nil || err.Error() != expected {
|
|
t.Fatalf("Expected %s", expected)
|
|
}
|
|
}
|