Skip to content

Commit

Permalink
chore: Fix node 18 test error
Browse files Browse the repository at this point in the history
  • Loading branch information
coreyfarrell committed Aug 13, 2022
1 parent 79843e0 commit a4b3548
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,8 @@ async function createServer(t, babelTypes, maskError, babelrc = defaultBabelRC)
.register(fastifyStatic, appOptions)
.register(fastifyBabel, babelOptions);

await fastify.listen(0);
fastify.server.unref();
await fastify.listen();
t.teardown(() => fastify.server.unref());

return `http://127.0.0.1:${fastify.server.address().port}`;
}
Expand Down

0 comments on commit a4b3548

Please sign in to comment.