Have stream emit 'close' rather than 'end' for sake of testing

This commit is contained in:
Sandro Santilli 2014-04-04 16:11:44 +02:00
parent e1b1c62e3e
commit e72aff4cfb

View File

@ -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');
});
});
});