diff --git a/virtcontainers/sandbox_test.go b/virtcontainers/sandbox_test.go index 375d4c21c8..b4a058061a 100644 --- a/virtcontainers/sandbox_test.go +++ b/virtcontainers/sandbox_test.go @@ -1458,6 +1458,9 @@ func TestGetNetNs(t *testing.T) { } func TestStartNetworkMonitor(t *testing.T) { + if os.Getuid() != 0 { + t.Skip("Test disabled as requires root user") + } trueBinPath, err := exec.LookPath("true") assert.Nil(t, err) assert.NotEmpty(t, trueBinPath)