mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
from ended to end
This commit is contained in:
parent
9ab6ed76d1
commit
0882c8da02
@ -28,7 +28,7 @@ PG.prototype.end = function() {
|
||||
pool.destroyAllNow(function() {
|
||||
count--;
|
||||
if(count === 0) {
|
||||
self.emit('ended');
|
||||
self.emit('end');
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
@ -5,7 +5,7 @@ test('disconnects', function() {
|
||||
var sink = new helper.Sink(4, function() {
|
||||
called = true;
|
||||
var eventSink = new helper.Sink(1, function() {});
|
||||
helper.pg.on('ended', function() {
|
||||
helper.pg.on('end', function() {
|
||||
eventSink.add();
|
||||
});
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user