Skip to content

Commit

Permalink
test: fix ECONNREFUSED for test server
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-guggisberg committed Nov 7, 2022
1 parent 467ab4f commit 99976cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ class Server {
const { port } = this;
// eslint-disable-next-line no-nested-ternary
const proto = this.secure ? 'https' : (this.httpMajorVersion === 2 ? 'http2' : 'http');
return `${proto}://localhost:${port}`;
return `${proto}://127.0.0.1:${port}`;
}

async shutDown(force = false) {
Expand Down

0 comments on commit 99976cb

Please sign in to comment.