fix to make connection error reporting more robust in test

This commit is contained in:
Brian Carlson 2010-11-17 13:13:27 -06:00
parent f7d990068f
commit 2fd220d8e2

View File

@ -7,9 +7,7 @@ var preparedCalled = false
pg.connect(helper.args, function(err, client) { pg.connect(helper.args, function(err, client) {
connected = true connected = true
test('error is null', function() { assert.equal(err, null, "Failed to connect");
assert.equal(err, null);
})
client.query('CREATE TEMP TABLE band(name varchar(100))'); 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') assert.ok(err, 'error was null')
}) })
}) })