Skip to content

Commit

Permalink
Use an object argument
Browse files Browse the repository at this point in the history
  • Loading branch information
iunanua committed Sep 19, 2024
1 parent d871335 commit bf95415
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export async function createAndStartServer (app) {
})

try {
await app.listen(0)
await app.listen({ port: 0 })
const address = app.server.address()
const port = address.port
process.send({ port })
Expand Down

0 comments on commit bf95415

Please sign in to comment.