mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
Have stream emit 'close' rather than 'end' for sake of testing
This commit is contained in:
parent
e1b1c62e3e
commit
e72aff4cfb
@ -20,7 +20,7 @@ test('emits end when not in query', function() {
|
||||
assert.equal(client.queryQueue.length, 0);
|
||||
assert(client.activeQuery, 'client should have issued query');
|
||||
process.nextTick(function() {
|
||||
stream.emit('end');
|
||||
stream.emit('close');
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user