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

Update redis-parser to v.2.0.0

Update all code accordingly
This commit is contained in:
Ruben Bridgewater
2016-05-25 22:47:09 +03:00
parent 84abf5c4c2
commit fe00bf271d
8 changed files with 171 additions and 106 deletions

View File

@@ -998,8 +998,12 @@ describe('The node_redis client', function () {
assert(err instanceof redis.AbortError);
error = err.origin;
});
// Fail the set answer. Has no corresponding command obj and will therefore land in the error handler and set
client.reply_parser.execute(new Buffer('a*1\r*1\r$1`zasd\r\na'));
// Make sure we call execute out of the reply
// ready is called in a reply
process.nextTick(function () {
// Fail the set answer. Has no corresponding command obj and will therefore land in the error handler and set
client.reply_parser.execute(new Buffer('a*1\r*1\r$1`zasd\r\na'));
});
});
});
});