fix to make connection error reporting more robust in test
This commit is contained in:
parent
f7d990068f
commit
2fd220d8e2
@ -7,9 +7,7 @@ var preparedCalled = false
|
||||
|
||||
pg.connect(helper.args, function(err, client) {
|
||||
connected = true
|
||||
test('error is null', function() {
|
||||
assert.equal(err, null);
|
||||
})
|
||||
assert.equal(err, null, "Failed to connect");
|
||||
|
||||
client.query('CREATE TEMP TABLE band(name varchar(100))');
|
||||
|
||||
@ -53,6 +51,3 @@ test('raises error if cannot connect', function() {
|
||||
assert.ok(err, 'error was null')
|
||||
})
|
||||
})
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user