mirror of
https://github.com/genuinetools/reg.git
synced 2024-07-04 12:34:17 -04:00
8e5eba8735
Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
18 lines
363 B
Go
18 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)
|
|
}
|
|
}
|