1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

chore: refactor parts out of the index.js file

This commit is contained in:
Ruben Bridgewater
2017-05-26 18:45:52 +02:00
parent a3a74559da
commit 3065e2e7be
19 changed files with 271 additions and 281 deletions

View File

@@ -173,7 +173,7 @@ describe('The \'multi\' method', () => {
it('executes a pipelined multi properly after a reconnect in combination with the offline queue', (done) => {
client.once('ready', () => {
client.stream.destroy()
client._stream.destroy()
let called = false
const multi1 = client.multi()
multi1.set('m1', '123')
@@ -472,7 +472,7 @@ describe('The \'multi\' method', () => {
})
it('works properly after a reconnect. issue #897', (done) => {
client.stream.destroy()
client._stream.destroy()
client.on('error', (err) => {
assert.strictEqual(err.code, 'ECONNREFUSED')
})