Skip to content

Commit

Permalink
fix koa test
Browse files Browse the repository at this point in the history
  • Loading branch information
cenfun committed Mar 31, 2024
1 parent 38075a3 commit 0c8750a
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test/test-node-koa.js
Original file line number Diff line number Diff line change
Expand Up @@ -128,12 +128,15 @@ const generate = async () => {

const cp = await startKoaProcess(port);
if (!cp) {
EC.logRed('can not start koa process');
return;
}

// request koa server
const [err, res] = await Util.request('http://localhost:3080');
const url = 'http://localhost:3080';
const [err, res] = await Util.request();
if (err) {
EC.logRed(`failed to request koa url: ${url}`);
return;
}
assert(res.data === 'Hello World');
Expand Down

0 comments on commit 0c8750a

Please sign in to comment.