Permalink
Browse files

Revert instanceof change, instead export RedisClient

  • Loading branch information...
1 parent 280a345 commit d49e1c0937aa5855fae6613f08a28cb0b88b53d2 Carlos Rodriguez committed Jun 21, 2012
Showing with 1 addition and 4 deletions.
  1. +1 −0 index.js
  2. +0 −2 test-singlemode.js
  3. +0 −2 test.js
View
@@ -20,6 +20,7 @@ function createClient(nodes, options, etc) {
return new RedisHAClient(nodes, options, etc);
}
exports.createClient = createClient;
+exports.RedisClient = RedisHAClient;
exports.debug_mode = false;
exports.command_logging = false;
exports.print = redis.print;
View
@@ -1381,8 +1381,6 @@ run_next_test = function run_next_test() {
}
};
-assert(client instanceof require('redis').RedisClient, 'RedisHAClient instanceof RedisClient');
-
client.once("ready", function start_tests() {
console.log("Connected to " + client.host + ":" + client.port + ", Redis server version " + client.server_info.redis_version + "\n");
console.log("Using reply parser " + client.reply_parser.name);
View
@@ -1390,8 +1390,6 @@ run_next_test = function run_next_test() {
}
};
-assert(client instanceof require('redis').RedisClient, 'RedisHAClient instanceof RedisClient');
-
client.once("ready", function start_tests() {
console.log("Connected to " + client.host + ":" + client.port + ", Redis server version " + client.server_info.redis_version + "\n");
console.log("Using reply parser " + client.reply_parser.name);

0 comments on commit d49e1c0

Please sign in to comment.