From 52dd96db6b0d3025ebeef42d1a72fa2c4f07dba3 Mon Sep 17 00:00:00 2001 From: Kir Kolyshkin Date: Sun, 11 Jul 2021 15:08:42 -0700 Subject: [PATCH] libct/cg/sd: TestFreezePodCgroup: rm explicit freeze This was initially added by commit 3e5c19970838b96a because Set (with r.Freezer = Frozen) was not able to freeze a container. Now (see a few previous commits) Set can do the freeze, so the explicit Freeze is no longer needed. Signed-off-by: Kir Kolyshkin --- libcontainer/cgroups/systemd/systemd_test.go | 3 --- 1 file changed, 3 deletions(-) diff --git a/libcontainer/cgroups/systemd/systemd_test.go b/libcontainer/cgroups/systemd/systemd_test.go index a444ff61330..6fd9f9f5892 100644 --- a/libcontainer/cgroups/systemd/systemd_test.go +++ b/libcontainer/cgroups/systemd/systemd_test.go @@ -219,9 +219,6 @@ func TestFreezePodCgroup(t *testing.T) { t.Fatal(err) } - if err := pm.Freeze(configs.Frozen); err != nil { - t.Fatal(err) - } if err := pm.Set(podConfig.Resources); err != nil { t.Fatal(err) }