Skip to content

Commit d80d883

Browse files
authored
test: Fix TLS connection test ending too early
1 parent a3eeecb commit d80d883

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

packages/pg/test/integration/client/ssl-tests.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const helper = require('./test-helper')
33
const assert = require('assert')
44
const suite = new helper.Suite()
55

6-
suite.test('can connect with ssl', function () {
6+
suite.test('can connect with ssl', function (done) {
77
const config = {
88
...helper.config,
99
ssl: {
@@ -16,7 +16,7 @@ suite.test('can connect with ssl', function () {
1616
client.query(
1717
'SELECT NOW()',
1818
assert.success(function () {
19-
client.end()
19+
client.end(done)
2020
})
2121
)
2222
})

0 commit comments

Comments
 (0)