You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
tests: improve coverage & fix unreachable code branches
This commit is contained in:
@@ -234,7 +234,7 @@ describe("The 'multi' method", function () {
|
||||
});
|
||||
|
||||
client.multi([['set', 'foo', 'bar'], ['get', 'foo']]).exec(function (err, res) {
|
||||
assert(/Redis connection in broken state: maximum connection attempts exceeded/.test(err.message));
|
||||
assert(/Redis connection in broken state: retry aborted/.test(err.message));
|
||||
assert.strictEqual(err.errors.length, 2);
|
||||
assert.strictEqual(err.errors[0].args.length, 2);
|
||||
});
|
||||
|
Reference in New Issue
Block a user