Skip to content

Commit

Permalink
remove event emitter limits in test
Browse files Browse the repository at this point in the history
  • Loading branch information
evantahler committed Jun 11, 2015
1 parent e2e0587 commit 546fa7f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/_specHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ exports.specHelper = {
var self = this;
if(package != 'fakeredis'){
self.redis = redis.createClient(self.connectionDetails.port, self.connectionDetails.host, self.connectionDetails.options);
self.redis.setMaxListeners(9999);
self.redis.setMaxListeners(0);
if(self.connectionDetails.password != null && self.connectionDetails.password != ""){
self.redis.auth(self.connectionDetails.password, function(err){
self.redis.select(self.connectionDetails.database, function(err){
Expand All @@ -43,6 +43,7 @@ exports.specHelper = {
}
}else{
self.redis = fakeredis.createClient('test');
self.redis.setMaxListeners(0);
self.redis.select(self.connectionDetails.database, function(err){
process.nextTick(function(){
self.connectionDetails.redis = self.redis;
Expand Down

0 comments on commit 546fa7f

Please sign in to comment.