From c0686975c9cc72d0f1923428d7fed8afa5d2f1d5 Mon Sep 17 00:00:00 2001 From: nlf Date: Tue, 29 Nov 2022 11:54:45 -0800 Subject: [PATCH] chore: fix test skips for nodejs prereleases (#4449) --- test/close-pipelining.test.js | 2 +- test/close.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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,