diff --git a/test/root/crictl_test.go b/test/root/crictl_test.go index 3ff5d4fac1..a0f0339d70 100644 --- a/test/root/crictl_test.go +++ b/test/root/crictl_test.go @@ -98,7 +98,7 @@ var Httpd = SimpleSpec("httpd", "basic/httpd", nil, nil) // TestCrictlSanity refers to b/112433158. func TestCrictlSanity(t *testing.T) { // Setup containerd and crictl. - crictl, cleanup, err := setup(t, false /* enableGrouping */) + crictl, cleanup, err := setup(t, true /* enableGrouping */) if err != nil { t.Fatalf("failed to setup crictl: %v", err) } @@ -113,24 +113,6 @@ func TestCrictlSanity(t *testing.T) { t.Fatalf("failed to get page: %v", err) } - // Since shim grouping is disabled, there will be one shim process for the - // container and another one for the sandbox. - count, err := countShimProcesses(t, contID) - if err != nil { - t.Fatalf("failed to count shim processes for containerID %s: %v", contID, err) - } - if count != 1 { - t.Errorf("got %d shim processes for containerID %s, want 1", count, contID) - } - - count, err = countShimProcesses(t, podID) - if err != nil { - t.Fatalf("failed to count shim processes for podID %s: %v", podID, err) - } - if count != 1 { - t.Errorf("got %d shim processes for podID %s, want 1", count, podID) - } - // Stop everything. if err := crictl.StopPodAndContainer(podID, contID); err != nil { t.Fatalf("stop failed: %v", err)