From e72aff4cfbc7e70fe8e3ab8a4f4210bb1e94c44c Mon Sep 17 00:00:00 2001 From: Sandro Santilli Date: Fri, 4 Apr 2014 16:11:44 +0200 Subject: [PATCH] Have stream emit 'close' rather than 'end' for sake of testing --- test/unit/client/stream-and-query-error-interaction-tests.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/unit/client/stream-and-query-error-interaction-tests.js b/test/unit/client/stream-and-query-error-interaction-tests.js index 9b02caf8..02d66c62 100644 --- a/test/unit/client/stream-and-query-error-interaction-tests.js +++ b/test/unit/client/stream-and-query-error-interaction-tests.js @@ -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'); }); }); });