Skip to content

Commit

Permalink
chore: fix test skips for nodejs prereleases (#4449)
Browse files Browse the repository at this point in the history
  • Loading branch information
nlf committed Nov 29, 2022
1 parent 204be5f commit c068697
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/close-pipelining.test.js
Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion test/close.test.js
Expand Up @@ -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,
Expand Down

0 comments on commit c068697

Please sign in to comment.