Skip to content

Commit 81f4e15

Browse files
debug(tests): server start
Signed-off-by: Victor Adossi <vadossi@cosmonic.com>
1 parent 51b4202 commit 81f4e15

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/builtins/fetch.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ export async function test(run, testState) {
3939
}
4040

4141
// Run a local server on some port
42+
console.error('[test] starting local server...');
4243
const server = createServer(async (req, res) => {
4344
res.writeHead(200, { 'Content-Type': 'application/json; charset=utf-8' });
4445
res.write(
@@ -50,6 +51,7 @@ export async function test(run, testState) {
5051
}).listen(port);
5152

5253
// Wait until the server is ready
54+
console.error('[test] waiting for server to start...');
5355
let ready = false;
5456
const url = FETCH_URL + (port ? ':' + port : '');
5557
while (!ready) {
@@ -61,6 +63,7 @@ export async function test(run, testState) {
6163
}
6264
}
6365

66+
console.error('[test] server started, running...');
6467
const { stdout, stderr } = await run();
6568
strictEqual(stderr, '');
6669
strictEqual(stdout.trim(), FETCH_URL);

0 commit comments

Comments
 (0)