summaryrefslogtreecommitdiffhomepage
path: root/runsc/sandbox/sandbox_test.go
diff options
context:
space:
mode:
Diffstat (limited to 'runsc/sandbox/sandbox_test.go')
-rw-r--r--runsc/sandbox/sandbox_test.go8
1 files changed, 1 insertions, 7 deletions
diff --git a/runsc/sandbox/sandbox_test.go b/runsc/sandbox/sandbox_test.go
index 6c71cac30..6e3125b7b 100644
--- a/runsc/sandbox/sandbox_test.go
+++ b/runsc/sandbox/sandbox_test.go
@@ -365,7 +365,6 @@ func TestExec(t *testing.T) {
Envv: []string{"PATH=" + os.Getenv("PATH")},
WorkingDirectory: "/",
KUID: uid,
- Detach: false,
}
// Verify that "sleep 100" and "sleep 5" are running after exec.
@@ -472,7 +471,6 @@ func TestCapabilities(t *testing.T) {
KUID: uid,
KGID: gid,
Capabilities: &auth.TaskCapabilities{},
- Detach: true,
}
// "exe" should fail because we don't have the necessary permissions.
@@ -484,14 +482,10 @@ func TestCapabilities(t *testing.T) {
execArgs.Capabilities = &auth.TaskCapabilities{
EffectiveCaps: auth.CapabilitySetOf(linux.CAP_DAC_OVERRIDE),
}
- // First, start running exec.
+ // "exe" should not fail this time.
if _, err := s.Execute(&execArgs); err != nil {
t.Fatalf("sandbox failed to exec %v: %v", execArgs, err)
}
-
- if err := waitForProcessList(s, expectedPL); err != nil {
- t.Error(err)
- }
}
// Test that an tty FD is sent over the console socket if one is provided.