Skip to content

Commit

Permalink
libct/cg/sd: TestFreezePodCgroup: rm explicit freeze
Browse files Browse the repository at this point in the history
This was initially added by commit 3e5c199 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 <kolyshkin@gmail.com>
  • Loading branch information
kolyshkin committed Jul 15, 2021
1 parent f2db879 commit 52dd96d
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions libcontainer/cgroups/systemd/systemd_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit 52dd96d

Please sign in to comment.