Skip to content

Commit 0e20eaf

Browse files
committed
Test
1 parent 54e8b60 commit 0e20eaf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/return/result.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ import {setFixtureDirectory} from '../helpers/fixtures-directory.js';
55
setFixtureDirectory();
66

77
test('result.isTerminated is false if not killed and subprocess.kill() was called', async t => {
8-
const subprocess = execa('noop.js');
8+
const subprocess = execa('forever.js');
99
t.true(subprocess.kill(0));
1010
await new Promise(resolve => {
11-
subprocess.on('exit', () => {
12-
t.false(subprocess.kill(0));
11+
subprocess.on('exit', (exitCode, signalCode) => {
12+
console.log({exitCode, signalCode});
1313
resolve();
1414
});
1515
});

0 commit comments

Comments
 (0)