Skip to content

Commit

Permalink
test without cgroupPath
Browse files Browse the repository at this point in the history
  • Loading branch information
jackyzha0 committed Aug 26, 2024
1 parent b8b4ab2 commit f92a139
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tests/index.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -425,13 +425,12 @@ describe('cgroup opts', () => {
// get the output of ls /sys/fs/cgroup/cpu/test.slice
console.log(await exec("ls /sys/fs/cgroup/cpu/test.slice"))

// cat current cgroup and check if it matches cgroupPath
const oldFds = getOpenFds();
let buffer = '';
const pty = new Pty({
command: '/bin/cat',
args: ['/proc/self/cgroup'],
cgroupPath: '/sys/fs/cgroup/cpu/test.slice',
// cgroupPath: '/sys/fs/cgroup/cpu/test.slice',
onExit: (err, exitCode) => {
expect(err).toBeNull();
expect(exitCode).toBe(0);
Expand Down

0 comments on commit f92a139

Please sign in to comment.