Fix test for older version of postgres

This commit is contained in:
Brian M. Carlson 2017-06-18 14:54:42 -05:00 committed by Brian C
parent 2300445646
commit ed9a33d3d1

View File

@ -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() };