You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
Added empty KEYS test illustrating hang
This commit is contained in:
9
test.js
9
test.js
@@ -209,6 +209,15 @@ tests.KEYS = function () {
|
|||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
|
tests.KEYS_EMPTY = function () {
|
||||||
|
var name = "KEYS_EMPTY";
|
||||||
|
client.KEYS(['users:*'], function(err, results){
|
||||||
|
assert.strictEqual(null, err, 'error on empty KEYS');
|
||||||
|
assert.strictEqual(0, results.length);
|
||||||
|
next(name);
|
||||||
|
});
|
||||||
|
};
|
||||||
|
|
||||||
tests.RANDOMKEY = function () {
|
tests.RANDOMKEY = function () {
|
||||||
var name = "RANDOMKEY";
|
var name = "RANDOMKEY";
|
||||||
client.mset(["test keys 1", "test val 1", "test keys 2", "test val 2"], require_string("OK", name));
|
client.mset(["test keys 1", "test val 1", "test keys 2", "test val 2"], require_string("OK", name));
|
||||||
|
Reference in New Issue
Block a user