1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Refactor multi to have a consistent error handling

Ignore *.log files
This commit is contained in:
Ruben Bridgewater
2015-09-08 01:36:25 +02:00
parent 13635c9c8c
commit 21d8bdbbcb
4 changed files with 80 additions and 22 deletions

View File

@@ -77,6 +77,21 @@ describe("The node_redis client", function () {
});
});
it("connects correctly to localhost and no ready check", function (done) {
client = redis.createClient(undefined, undefined, {
no_ready_check: true
});
client.on("error", done);
client.once("ready", function () {
client.set('foo', 'bar');
client.get('foo', function(err, res) {
assert.strictEqual(res, 'bar');
done(err);
});
});
});
it("throws on strange connection info", function () {
try {
redis.createClient(true);