Skip to content

Commit c432fd8

Browse files
committed
test: fix flaky
1 parent 90a0fb0 commit c432fd8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/test/ts/ps.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ describe('tree()', () => {
9393
const children = await tree(pid)
9494
const childrenAll = await tree({ pid, recursive: true })
9595

96-
await Promise.all(list.map(p => kill(p.pid)))
96+
await Promise.all(list.map(p => kill(p.pid, 'SIGKILL')))
9797

9898
assert.equal(children.length, 1)
9999
assert.equal(childrenAll.length, 2)
@@ -119,7 +119,7 @@ describe('treeSync()', () => {
119119
const children = treeSync(pid)
120120
const childrenAll = treeSync({ pid, recursive: true })
121121

122-
await Promise.all(list.map(p => kill(p.pid)))
122+
await Promise.all(list.map(p => kill(p.pid, 'SIGKILL')))
123123

124124
assert.equal(children.length, 1)
125125
assert.equal(childrenAll.length, 2)

0 commit comments

Comments
 (0)