1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

Fix send_command working with hooked internal functions

This commit is contained in:
Ruben Bridgewater
2016-03-31 19:17:29 +02:00
parent 3c2e6b4a83
commit 861749f4d6
5 changed files with 21 additions and 25 deletions

View File

@@ -56,7 +56,7 @@ describe("The 'info' method", function () {
it('check redis v.2.4 support', function (done) {
var end = helper.callFuncAfter(done, 2);
client.send_command = function (command, args, callback) {
client.internal_send_command = function (command, args, callback) {
assert.strictEqual(args.length, 0);
assert.strictEqual(command, 'info');
end();