Skip to content

Commit b7f53af

Browse files
committed
Test
1 parent 8ef0a43 commit b7f53af

File tree

1 file changed

+1
-15
lines changed

1 file changed

+1
-15
lines changed

test/return/result.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -7,24 +7,10 @@ setFixtureDirectory();
77
test('test this', async t => {
88
t.pass();
99
const subprocess = spawn('node', ['--version']);
10-
try {
11-
t.true(subprocess.kill(0));
12-
} catch (error) {
13-
console.log('uncaught', {error});
14-
subprocess.kill();
15-
return;
16-
}
17-
10+
subprocess.kill(0);
1811
await new Promise(resolve => {
19-
subprocess.on('close', (exitCode, signalCode) => {
20-
console.log('close', {exitCode, signalCode});
21-
resolve();
22-
});
2312
subprocess.on('exit', (exitCode, signalCode) => {
2413
console.log('exit', {exitCode, signalCode});
25-
});
26-
subprocess.on('error', error => {
27-
console.log({error});
2814
resolve();
2915
});
3016
});

0 commit comments

Comments
 (0)