ab35df454d
Removed pre-go1.17 build-tags with go fix; go mod init go fix -mod=readonly ./... rm go.mod Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
17 lines
411 B
Go
17 lines
411 B
Go
//go: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)
|
|
}
|
|
}
|