|
|
@ -214,7 +214,7 @@ describe("The node_redis client", function () { |
|
|
|
var client = redis.createClient(); |
|
|
|
client.quit(function() { |
|
|
|
client.get("foo", function(err, res) { |
|
|
|
assert.strictEqual(err.message, 'Redis connection gone from end event.'); |
|
|
|
assert(err.message.indexOf('Redis connection gone') !== -1); |
|
|
|
assert.strictEqual(client.offline_queue.length, 0); |
|
|
|
done(); |
|
|
|
}); |
|
|
@ -355,6 +355,7 @@ describe("The node_redis client", function () { |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
describe('monitor', function () { |
|
|
|
it('monitors commands on all other redis clients', function (done) { |
|
|
@ -391,8 +392,6 @@ describe("The node_redis client", function () { |
|
|
|
}); |
|
|
|
}); |
|
|
|
|
|
|
|
}); |
|
|
|
|
|
|
|
describe('idle', function () { |
|
|
|
it('emits idle as soon as there are no outstanding commands', function (done) { |
|
|
|
client.on('idle', function onIdle () { |
|
|
@ -619,7 +618,7 @@ describe("The node_redis client", function () { |
|
|
|
client.set('baz', 13); |
|
|
|
client.set('foo', 'bar', function(err, result) { |
|
|
|
assert(i, 3); |
|
|
|
assert('Redis connection gone from error event', err.message); |
|
|
|
assert(err); |
|
|
|
assert.strictEqual(client.offline_queue.length, 0); |
|
|
|
}); |
|
|
|
}); |
|
|
|