Skip to content

Commit d43187e

Browse files
committed
fixup! test: use common spawnSync helpers in more tests
Signed-off-by: greenhead <greenheadhq@gmail.com>
1 parent 98ce165 commit d43187e

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

test/parallel/test-fs-glob.mjs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -707,12 +707,11 @@ test('glob forwards maxDepth', async () => {
707707
});
708708

709709
function runNodeScript(script) {
710-
const child = spawnSync(
710+
const { child } = spawnSyncAndExitWithoutError(
711711
process.execPath,
712712
['--expose-internals', '-e', script],
713713
{ encoding: 'utf8' },
714714
);
715-
assert.strictEqual(child.status, 0, child.stderr || child.stdout);
716715
return child.stdout;
717716
}
718717

0 commit comments

Comments
 (0)