diff --git a/test/close-pipelining.test.js b/test/close-pipelining.test.js index 3f4b273b83..7c952e8384 100644 --- a/test/close-pipelining.test.js +++ b/test/close-pipelining.test.js @@ -36,7 +36,7 @@ test('Should return 503 while closing - pipelining', async t => { await instance.close() }) -const isV19plus = semver.satisfies(process.version, '>= v19.0.0') +const isV19plus = semver.gte(process.version, '19.0.0') test('Should not return 503 while closing - pipelining - return503OnClosing: false, skip Node >= v19.x', { skip: isV19plus }, async t => { const fastify = Fastify({ return503OnClosing: false, diff --git a/test/close.test.js b/test/close.test.js index b0c78877ff..84a7a3d840 100644 --- a/test/close.test.js +++ b/test/close.test.js @@ -203,7 +203,7 @@ test('Should return error while closing (callback) - injection', t => { }) }) -const isV19plus = semver.satisfies(process.version, '>= v19.0.0') +const isV19plus = semver.gte(process.version, '19.0.0') t.test('Current opened connection should continue to work after closing and return "connection: close" header - return503OnClosing: false, skip Node >= v19.x', { skip: isV19plus }, t => { const fastify = Fastify({ return503OnClosing: false,