You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Adding tests for idle event
Signed-off-by: DTrejo <david.trejo@voxer.com>
This commit is contained in:
11
test.js
11
test.js
@@ -470,6 +470,17 @@ tests.reconnect = function () {
|
||||
});
|
||||
};
|
||||
|
||||
tests.idle = function () {
|
||||
var name = "idle";
|
||||
|
||||
client.on("idle", function on_idle() {
|
||||
client.removeListener("idle", on_idle);
|
||||
next(name);
|
||||
});
|
||||
|
||||
client.set("idle", "test");
|
||||
};
|
||||
|
||||
tests.HSET = function () {
|
||||
var key = "test hash",
|
||||
field1 = new Buffer("0123456789"),
|
||||
|
Reference in New Issue
Block a user