Skip to content

Commit 475dce1

Browse files
authored
chore: upgrade c8 to v11.0.0 and improvements test (#564)
1 parent 3ff0f39 commit 475dce1

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@
6969
"@fastify/compress": "^8.0.0",
7070
"@types/node": "^25.0.3",
7171
"borp": "^1.0.0",
72-
"c8": "^10.1.3",
72+
"c8": "^11.0.0",
7373
"concat-stream": "^2.0.0",
7474
"eslint": "^9.17.0",
7575
"fastify": "^5.1.0",

test/static.test.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1515,7 +1515,7 @@ test('register no prefix', async (t) => {
15151515
})
15161516
})
15171517

1518-
test('with fastify-compress', async t => {
1518+
test('with fastify-compress', { timeout: 60000 }, async t => {
15191519
t.plan(2)
15201520

15211521
const pluginOptions = {
@@ -1529,8 +1529,6 @@ test('with fastify-compress', async t => {
15291529

15301530
await fastify.listen({ port: 0 })
15311531

1532-
fastify.server.unref()
1533-
15341532
await t.test('deflate', async function (t) {
15351533
t.plan(3 + GENERIC_RESPONSE_CHECK_COUNT)
15361534

@@ -1555,6 +1553,7 @@ test('with fastify-compress', async t => {
15551553
genericResponseChecks(t, response)
15561554
})
15571555
})
1556+
15581557
test('register /static/ with schemaHide true', async t => {
15591558
t.plan(2)
15601559

0 commit comments

Comments
 (0)