mirror of
https://github.com/genuinetools/reg.git
synced 2024-09-12 06:11:03 -04:00
17 lines
363 B
Go
17 lines
363 B
Go
// +build windows
|
|
|
|
package 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)
|
|
}
|
|
}
|