You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
Improve tests a bit
Reduce timeouts if possible Extend timeouts if needed (windows tests need their time) Don't expose the redis socket to others than the owner Don't create the stunnel log
This commit is contained in:
@@ -25,7 +25,6 @@ RedisClient.prototype.batch = RedisClient.prototype.BATCH = function batch (args
|
||||
// Store db in this.select_db to restore it on reconnect
|
||||
RedisClient.prototype.select = RedisClient.prototype.SELECT = function select (db, callback) {
|
||||
var self = this;
|
||||
db = Array.isArray(db) && db.length === 1 ? db[0] : db;
|
||||
return this.internal_send_command('select', [db], function (err, res) {
|
||||
if (err === null) {
|
||||
self.selected_db = db;
|
||||
@@ -149,7 +148,6 @@ RedisClient.prototype.auth = RedisClient.prototype.AUTH = function auth (pass, c
|
||||
debug('Sending auth to ' + self.address + ' id ' + self.connection_id);
|
||||
|
||||
// Stash auth for connect and reconnect.
|
||||
pass = Array.isArray(pass) && pass.length === 1 ? pass[0] : pass;
|
||||
this.auth_pass = pass;
|
||||
this.ready = this.offline_queue.length === 0; // keep the execution order intakt
|
||||
var tmp = this.internal_send_command('auth', [pass], function (err, res) {
|
||||
@@ -163,7 +161,7 @@ RedisClient.prototype.auth = RedisClient.prototype.AUTH = function auth (pass, c
|
||||
debug('Redis still loading, trying to authenticate later');
|
||||
setTimeout(function () {
|
||||
self.auth(pass, callback);
|
||||
}, 200);
|
||||
}, 100);
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user