Permalink
Browse files

Fix unit tests for pubsub to not log a warning each time

  • Loading branch information...
1 parent f0bfe3d commit 67692b2d6dc0b4eaa1a40ef00c16516c51d76d5d @maritz committed Jun 25, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 test/pubsub/child.js
View
@@ -3,7 +3,9 @@ var nohm = require(__dirname+'/../../lib/nohm').Nohm;
var args = require(__dirname+'/../testArgs.js');
nohm.setPrefix(args.prefix);
-nohm.setClient(args.redis);
+args.redis.on('ready', function () {
+ nohm.setClient(args.redis);
+});
require(__dirname+'/Model.js');
process.on('message', function (msg) {

0 comments on commit 67692b2

Please sign in to comment.