Skip to content

Commit

Permalink
fixed koa request url
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Mar 31, 2024
1 parent 281250b commit 1c2fe4b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test-node-koa.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ const generate = async () => {
const cp = await startKoaProcess(port);
if (!cp) {
EC.logRed('can not start koa process');
process.exit(1);
return;
}

Expand All @@ -137,8 +138,12 @@ const generate = async () => {
const [err, res] = await Util.request(url);
if (err) {
EC.logRed(`failed to request koa url: ${url}`);
console.log(err);
killSubProcess(cp);
process.exit(1);
return;
}

assert(res.data === 'Hello World');

// after webServer is debugging on ws://127.0.0.1:9229
Expand Down

0 comments on commit 1c2fe4b

Please sign in to comment.