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

chore: minor refactoring

This commit is contained in:
Ruben Bridgewater
2017-05-30 00:44:57 +02:00
parent 0276e15f04
commit 265ce48af4
6 changed files with 50 additions and 40 deletions

View File

@@ -520,7 +520,7 @@ describe('The nodeRedis client', () => {
client.on('error', (err) => {
console.log(err)
if (err.code === 'CONNECTION_BROKEN') {
if (err.code === 'NR_CLOSED') {
assert(i, 3)
assert.strictEqual(client.offlineQueue.length, 0)
assert.strictEqual(err.origin.code, 'ECONNREFUSED')