Skip to content

Commit a29e85d

Browse files
committed
more logs
1 parent d34225c commit a29e85d

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

dev-packages/node-overhead-gh-action/lib/getOverheadMeasurements.mjs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,19 @@ async function getMeasurements(instrumentFile) {
1515

1616
const appProcess = spawn(cmd, { shell: true });
1717

18+
log('Child process started, waiting for example app...');
19+
1820
await new Promise(resolve => {
1921
appProcess.stdout.on('data', data => {
20-
if (data.includes('Example app listening on port')) {
22+
log(`appProcess: ${data}`);
23+
if (`${data}`.includes('Example app listening on port')) {
2124
resolve();
2225
}
2326
});
2427
});
2528

29+
log('Example app listening, running autocannon...');
30+
2631
const autocannon = spawn('yarn test', {
2732
shell: true,
2833
});

0 commit comments

Comments
 (0)