1
0
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:
Trae Robrock
2012-06-28 21:36:00 -07:00
committed by DTrejo
parent 2224767c4c
commit db4f1648d4

11
test.js
View File

@@ -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"),