Skip to content

Commit

Permalink
fix tests (#185)
Browse files Browse the repository at this point in the history
  • Loading branch information
Eomm authored Nov 25, 2021
1 parent 214caae commit 9d4b3a4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion example-custom-format.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,6 @@ server.listen(0, '127.0.0.1', (err) => {
process.exit(1)
}

const url = `http://localhost:${server.address().port}/`
const url = `http://${server.address().address}:${server.address().port}/`
process.stderr.write(url)
})
2 changes: 1 addition & 1 deletion test/transport-integration.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ test('custom format transport', function (t) {
ls.stderr.setEncoding('utf8')

ls.stdout.on('data', (data) => {
t.match(data.trim(), /\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3} \+\d{4}\] GET http:\/\/localhost:\d{4,6}\/ 200 \d{1,2}ms/)
t.match(data.trim(), /\[\d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d{3} \+\d{4}\] GET http:\/\/.+:\d{4,6}\/ 200 \d{1,2}ms/)
ls.kill()
})

Expand Down

0 comments on commit 9d4b3a4

Please sign in to comment.