Skip to content

Commit

Permalink
test: fix test for not release "end" binding
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed Dec 4, 2016
1 parent 0b50a56 commit aa4bd1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/functional/cluster.js
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,7 @@ describe('cluster', function () {
disconnect([server], done);
return Redis.prototype.subscribe.apply(this, arguments);
});
client.on('end', function () {
client.once('end', function () {
client.connect();
});
client.disconnect();
Expand All @@ -1016,7 +1016,7 @@ describe('cluster', function () {
disconnect([server], done);
return Redis.prototype.psubscribe.apply(this, arguments);
});
client.on('end', function () {
client.once('end', function () {
client.connect();
});
client.disconnect();
Expand Down

0 comments on commit aa4bd1d

Please sign in to comment.