mirror of
https://github.com/brianc/node-postgres.git
synced 2026-01-18 15:55:05 +00:00
Make test more robust
This commit is contained in:
parent
44784fa2f3
commit
81ce2f6d9c
@ -17,6 +17,9 @@ var config = {
|
||||
|
||||
//connect & disconnect from heroku
|
||||
pg.connect(config, assert.success(function(client, done) {
|
||||
done();
|
||||
pg.end();
|
||||
client.query('SELECT NOW() as time', assert.success(function(res) {
|
||||
assert(res.rows[0].time.getTime());
|
||||
done();
|
||||
pg.end();
|
||||
}))
|
||||
}));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user