From ed9a33d3d14cd5ad1e432476979d36a3c4bd10f6 Mon Sep 17 00:00:00 2001 From: "Brian M. Carlson" Date: Sun, 18 Jun 2017 14:54:42 -0500 Subject: [PATCH] Fix test for older version of postgres --- test/integration/client/json-type-parsing-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/integration/client/json-type-parsing-tests.js b/test/integration/client/json-type-parsing-tests.js index e3dca3a5..b3ec4074 100644 --- a/test/integration/client/json-type-parsing-tests.js +++ b/test/integration/client/json-type-parsing-tests.js @@ -7,7 +7,7 @@ pool.connect(assert.success(function (client, done) { if (!jsonSupported) { console.log('skip json test on older versions of postgres'); done(); - return helper.pg.end(); + return pool.end(); } client.query('CREATE TEMP TABLE stuff(id SERIAL PRIMARY KEY, data JSON)'); var value = { name: 'Brian', age: 250, alive: true, now: new Date() };