1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

Do not emit the broken mode twice if exec is called

Add more tests
This commit is contained in:
Ruben Bridgewater
2015-09-13 00:27:50 +02:00
parent 30ec1cd6a2
commit 89c8dd056b
4 changed files with 79 additions and 17 deletions

View File

@@ -145,5 +145,15 @@ module.exports = {
func();
}
};
},
killConnection: function (client) {
// Change the connection option to a non existing one and destroy the stream
client.connectionOption = {
port: 6370,
host: '127.0.0.2',
family: 4
};
client.address = '127.0.0.2:6370';
client.stream.destroy();
}
};