Skip to content

Commit

Permalink
fixup! chore: add localhost lookup test
Browse files Browse the repository at this point in the history
  • Loading branch information
rvagg committed Oct 25, 2024
1 parent 7758496 commit 019064d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions test/multi-mount.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ test('setup middleware server', function (t) {
})
})
})
middlewareServer.listen(port, '127.0.0.1', function () {
middlewareServer.listen(port, 'localhost', function () {
t.pass('listening')
t.end()
})
Expand All @@ -103,7 +103,7 @@ test('setup regular server', function (t) {
return res.end(`Not a match: ${req.url}`)
}
})
server.listen(port + 1, '127.0.0.1', function () {
server.listen(port + 1, 'localhost', function () {
t.pass('listening')
t.end()
})
Expand All @@ -114,6 +114,7 @@ const stExpect = fs.readFileSync(require.resolve('../st.js')).toString()

test('/test/st.js', function (t) {
req('/test/st.js', function (er, res, body) {
t.error(er)
t.equal(res.statusCode, 200)
t.ok(res.headers.etag)
stEtag = res.headers.etag
Expand Down

0 comments on commit 019064d

Please sign in to comment.