Forráskód Böngészése

Change TestCgroupNamespacesRunPrivileged requirement

This test requires cgroup namespaces to be enabled, not the other way
around.

Signed-off-by: Rob Gulewich <rgulewich@netflix.com>
Rob Gulewich 6 éve
szülő
commit
96f6c81ab7
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      integration/container/run_cgroupns_linux_test.go

+ 1 - 1
integration/container/run_cgroupns_linux_test.go

@@ -68,7 +68,7 @@ func TestCgroupNamespacesRun(t *testing.T) {
 func TestCgroupNamespacesRunPrivileged(t *testing.T) {
 	skip.If(t, testEnv.DaemonInfo.OSType != "linux")
 	skip.If(t, testEnv.IsRemoteDaemon())
-	skip.If(t, requirement.CgroupNamespacesEnabled())
+	skip.If(t, !requirement.CgroupNamespacesEnabled())
 
 	// When the daemon defaults to private cgroup namespaces, privileged containers
 	// launched should not be inside their own cgroup namespaces