From 506a31e4200cb2d3f31017e3706085ca43649140 Mon Sep 17 00:00:00 2001 From: Jacky Zhao Date: Mon, 26 Aug 2024 14:57:25 -0700 Subject: [PATCH] fixup test --- tests/index.test.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/index.test.ts b/tests/index.test.ts index 7e738bc..136b87b 100644 --- a/tests/index.test.ts +++ b/tests/index.test.ts @@ -438,7 +438,7 @@ describe('cgroup opts', () => { onExit: (err, exitCode) => { expect(err).toBeNull(); expect(exitCode).toBe(0); - expect(buffer.trim()).toBe(pty.pid.toString()); + expect(buffer).toContain('/test.slice'); expect(getOpenFds()).toStrictEqual(oldFds); done(); },