From 1eb7f77eaff88ae00293e643993075faafa35ac6 Mon Sep 17 00:00:00 2001 From: Kiko Beats Date: Sat, 2 Mar 2024 17:50:08 +0100 Subject: [PATCH] test: unify default host --- packages/metascraper-audio/test/helpers.js | 2 +- packages/metascraper-logo-favicon/test/helpers.js | 2 +- packages/metascraper-video/test/helpers.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/metascraper-audio/test/helpers.js b/packages/metascraper-audio/test/helpers.js index f8e39b93b..576764d8f 100644 --- a/packages/metascraper-audio/test/helpers.js +++ b/packages/metascraper-audio/test/helpers.js @@ -16,7 +16,7 @@ const runServer = async (t, handler, opts) => { res.end() } }) - const url = await listen(server, { port: 0, host: '0.0.0.0', ...opts }) + const url = await listen(server, { port: 0, host: '127.0.0.1', ...opts }) t.teardown(() => closeServer(server)) return url.toString() } diff --git a/packages/metascraper-logo-favicon/test/helpers.js b/packages/metascraper-logo-favicon/test/helpers.js index f8e39b93b..576764d8f 100644 --- a/packages/metascraper-logo-favicon/test/helpers.js +++ b/packages/metascraper-logo-favicon/test/helpers.js @@ -16,7 +16,7 @@ const runServer = async (t, handler, opts) => { res.end() } }) - const url = await listen(server, { port: 0, host: '0.0.0.0', ...opts }) + const url = await listen(server, { port: 0, host: '127.0.0.1', ...opts }) t.teardown(() => closeServer(server)) return url.toString() } diff --git a/packages/metascraper-video/test/helpers.js b/packages/metascraper-video/test/helpers.js index f8e39b93b..576764d8f 100644 --- a/packages/metascraper-video/test/helpers.js +++ b/packages/metascraper-video/test/helpers.js @@ -16,7 +16,7 @@ const runServer = async (t, handler, opts) => { res.end() } }) - const url = await listen(server, { port: 0, host: '0.0.0.0', ...opts }) + const url = await listen(server, { port: 0, host: '127.0.0.1', ...opts }) t.teardown(() => closeServer(server)) return url.toString() }