Skip to content

Commit

Permalink
fix compile
Browse files Browse the repository at this point in the history
  • Loading branch information
trentm committed Nov 7, 2023
1 parent b009011 commit 18832b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
"@types/express": "4.17.18",
"@types/mocha": "7.0.2",
"@types/node": "18.15.3",
"@types/semver": "7.5.5",
"fastify": "4.18.0",
"mocha": "7.2.0",
"nyc": "15.1.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -449,14 +449,13 @@ describe('fastify', () => {
// 'preClose' was added in fastify@4.16.0
if (semver.lt(fastifyVersion, '4.16.0')) {
this.skip();
return;
}

app.addHook('preClose', () => {
assertRootContextActive();
});
} else {
app.addHook('preClose', () => {
assertRootContextActive();
});

await startServer();
await startServer();
}
});

it('onClose is not instrumented', async () => {
Expand Down

0 comments on commit 18832b4

Please sign in to comment.