-
Notifications
You must be signed in to change notification settings - Fork 574
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sandbox/cgroup: don't use freezer cgroup for tracking in KillSnapProc…
…esses for v1 Signed-off-by: Zeyad Gouda <[email protected]>
- Loading branch information
1 parent
23f1aff
commit 87d6855
Showing
2 changed files
with
40 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -100,6 +100,9 @@ func (s *killSuite) TestKillSnapProcessesV1(c *C) { | |
c.Assert(cgroup.KillSnapProcesses(context.TODO(), "foo"), IsNil) | ||
c.Assert(ops, DeepEquals, []string{ | ||
"freeze-snap-processes-v1:foo", | ||
"kill cgroup: /sys/fs/cgroup/pids/user.slice/user-0.slice/[email protected]/snap.foo.app-1.1234-1234-1234.scope", | ||
"kill cgroup: /sys/fs/cgroup/pids/user.slice/user-0.slice/[email protected]/snap.foo.app-1.9876.scope", | ||
"kill cgroup: /sys/fs/cgroup/pids/user.slice/user-0.slice/[email protected]/snap.foo.app-2.some-scope.scope", | ||
"kill cgroup: /sys/fs/cgroup/freezer/snap.foo", | ||
"thaw-snap-processes-v1:foo", | ||
}) | ||
|
@@ -434,7 +437,7 @@ func (s *killSuite) TestKillProcessInCgroupTimeout(c *C) { | |
}) | ||
defer restore() | ||
|
||
restore = cgroup.MockMaxKillTimeout(50 * time.Millisecond) | ||
restore = cgroup.MockMaxKillTimeout(10 * time.Millisecond) | ||
defer restore() | ||
|
||
err := cgroup.KillProcessesInCgroup(context.TODO(), cg) | ||
|