You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-04 15:02:09 +03:00
Fix .auth not working properly
The arguments parameter was faulty andthe callback could have been triggered twice
This commit is contained in:
@@ -147,6 +147,18 @@ describe("client authentication", function () {
|
||||
});
|
||||
client.auth(234567);
|
||||
});
|
||||
|
||||
it('allows auth to be provided post-hoc with auth method again', function (done) {
|
||||
if (helper.redisProcess().spawnFailed()) this.skip();
|
||||
|
||||
var args = config.configureClient(parser, ip, {
|
||||
auth_pass: auth
|
||||
});
|
||||
client = redis.createClient.apply(redis.createClient, args);
|
||||
client.on("ready", function () {
|
||||
client.auth(auth, helper.isString('OK', done));
|
||||
});
|
||||
});
|
||||
});
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user