diff --git a/test/functional/cluster.js b/test/functional/cluster.js index 145777b2..e2ef6fed 100644 --- a/test/functional/cluster.js +++ b/test/functional/cluster.js @@ -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(); @@ -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();