fix end race in test

This commit is contained in:
bmc 2013-04-04 11:45:41 -05:00
parent 3b2f4134b2
commit 173f3f37b2

View File

@ -8,7 +8,6 @@ test('error during query execution', function() {
client.query(sleepQuery, assert.calls(function(err, result) { client.query(sleepQuery, assert.calls(function(err, result) {
assert(err); assert(err);
client.end(); client.end();
assert.emits(client, 'end');
})); }));
var client2 = new Client(helper.args); var client2 = new Client(helper.args);
client2.connect(assert.success(function() { client2.connect(assert.success(function() {