You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Fixed zero-length mutlibulk replies
This commit is contained in:
6
test.js
6
test.js
@@ -209,10 +209,10 @@ tests.KEYS = function () {
|
||||
});
|
||||
};
|
||||
|
||||
tests.KEYS_EMPTY = function () {
|
||||
var name = "KEYS_EMPTY";
|
||||
tests.MULTIBULK_ZERO_LENGTH = function () {
|
||||
var name = "MULTIBULK_ZERO_LENGTH";
|
||||
client.KEYS(['users:*'], function(err, results){
|
||||
assert.strictEqual(null, err, 'error on empty KEYS');
|
||||
assert.strictEqual(null, err, 'error on empty multibulk reply');
|
||||
assert.strictEqual(0, results.length);
|
||||
next(name);
|
||||
});
|
||||
|
Reference in New Issue
Block a user