Skip to content

Commit

Permalink
Fix tests failing with Node.js v18.14.0 (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
slvrtrn committed Feb 16, 2023
1 parent 5a2b658 commit 6c9dea3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions __tests__/tls/tls.test.ts
Expand Up @@ -76,9 +76,10 @@ describe('TLS connection', () => {
key: fs.readFileSync(`${certsPath}/server.key`),
},
})
const errorMessage = process.version.startsWith('v19')
? 'unsupported certificate'
: 'socket hang up'
const errorMessage =
process.version.startsWith('v18') || process.version.startsWith('v19')
? 'unsupported certificate'
: 'socket hang up'
await expect(
client.query({
query: 'SELECT number FROM system.numbers LIMIT 3',
Expand Down

0 comments on commit 6c9dea3

Please sign in to comment.