From 0c8750a2f82e26de1c90ecfa4aa80fbdb7bdf425 Mon Sep 17 00:00:00 2001 From: cenfun Date: Sun, 31 Mar 2024 22:05:12 +0800 Subject: [PATCH] fix koa test --- test/test-node-koa.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/test-node-koa.js b/test/test-node-koa.js index f659cf4c..e5ff08c2 100644 --- a/test/test-node-koa.js +++ b/test/test-node-koa.js @@ -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');