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

Do not run all tests with every single connection (if one connection works, the others are going to be fine too)

This commit is contained in:
Ruben Bridgewater
2015-09-10 18:06:50 +02:00
parent 1e0421ac3b
commit 0b8705abe9
4 changed files with 27 additions and 21 deletions

View File

@@ -8,7 +8,9 @@ var redis = config.redis;
describe("The node_redis client", function () {
helper.allTests(function(parser, ip, args) {
helper.allTests({
allConnections: true
}, function(parser, ip, args) {
if (args[2]) { // skip if options are undefined
describe("testing parser existence", function () {
@@ -624,7 +626,6 @@ describe("The node_redis client", function () {
describe('defaults to true', function () {
var client;
var args = config.configureClient(parser, ip);
it("fires client.on('ready')", function (done) {
client = redis.createClient.apply(redis.createClient, args);
@@ -703,7 +704,7 @@ describe("The node_redis client", function () {
if (err) return done(err);
});
return setTimeout(function(){
return setTimeout(function() {
assert.strictEqual(client.offline_queue.length, 1);
return done();
}, 25);