From 0d02f2a0118f7647876e1ce5c19874ea0dd06bd8 Mon Sep 17 00:00:00 2001 From: Jessica Frazelle Date: Thu, 11 Feb 2016 16:28:00 -0800 Subject: [PATCH] make tests faster no apt-key Signed-off-by: Jessica Frazelle --- integration-cli/docker_cli_run_unix_test.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/integration-cli/docker_cli_run_unix_test.go b/integration-cli/docker_cli_run_unix_test.go index 182b522206..c235cd003d 100644 --- a/integration-cli/docker_cli_run_unix_test.go +++ b/integration-cli/docker_cli_run_unix_test.go @@ -838,14 +838,14 @@ func (s *DockerSuite) TestRunSeccompAllowPrivCloneUserns(c *check.C) { } } -// TestRunSeccompAllowAptKey checks that 'docker run debian:jessie apt-key' succeeds. -func (s *DockerSuite) TestRunSeccompAllowAptKey(c *check.C) { - testRequires(c, SameHostDaemon, seccompEnabled, Network) +// TestRunSeccompAllowSetrlimit checks that 'docker run debian:jessie ulimit -v 1048510' succeeds. +func (s *DockerSuite) TestRunSeccompAllowSetrlimit(c *check.C) { + testRequires(c, SameHostDaemon, seccompEnabled) - // apt-key uses setrlimit & getrlimit, so we want to make sure we don't break it - runCmd := exec.Command(dockerBinary, "run", "debian:jessie", "apt-key", "adv", "--keyserver", "hkp://p80.pool.sks-keyservers.net:80", "--recv-keys", "E871F18B51E0147C77796AC81196BA81F6B0FC61") + // ulimit uses setrlimit, so we want to make sure we don't break it + runCmd := exec.Command(dockerBinary, "run", "debian:jessie", "bash", "-c", "ulimit -v 1048510") if out, _, err := runCommandWithOutput(runCmd); err != nil { - c.Fatalf("expected apt-key with seccomp to succeed, got %s: %v", out, err) + c.Fatalf("expected ulimit with seccomp to succeed, got %s: %v", out, err) } }