diff --git a/packages/shared/sandbox_test.go b/packages/shared/sandbox_test.go index 51173af..9e8b018 100644 --- a/packages/shared/sandbox_test.go +++ b/packages/shared/sandbox_test.go @@ -24,6 +24,8 @@ func TestSandboxMarkerRoundTrips(t *testing.T) { func TestSandboxModeReadsTheWeakerModeWhenItCannotTell(t *testing.T) { cases := []struct{ env, want string }{ {"", ""}, + // A present marker with an empty mode does not imply run mode. + {":1.0.0", ""}, {"run:1.0.0", SandboxModeRun}, {"box:1.0.0", SandboxModeBox}, @@ -169,4 +171,4 @@ func TestVerifiedInSandboxBoxProbeReadsPidOne(t *testing.T) { if !confined { t.Errorf("PID 1 is %q, which is not a host init, so the probe should accept it", init) } -} \ No newline at end of file +}