1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

finished porting blpop, expire, mset, slowlog, sunionstore, ttl

This commit is contained in:
Benjamin Coe
2015-08-15 13:00:05 -07:00
parent 65db5dbefe
commit 51b1ba2bef
7 changed files with 260 additions and 152 deletions

View File

@@ -66,22 +66,9 @@ describe("The 'mset' method", function () {
describe("and a callback is specified", function () {
describe("with valid parameters", function () {
it("sets the value correctly", function (done) {
client.mset(key, value, key2, value2, function (err, res) {
helper.isNotError()(err, res);
async.parallel([function (next) {
client.get(key, function (err, res) {
helper.isString(value)(err, res);
next();
});
}, function (next) {
client.get(key2, function (err, res) {
helper.isString(value2)(err, res);
next();
});
}], function (err) {
done(err);
});
});
client.mset(key, value, key2, value2);
client.get(key, helper.isString(value));
client.get(key2, helper.isString(value2, done));
});
});
@@ -108,22 +95,8 @@ describe("The 'mset' method", function () {
describe("with valid parameters", function () {
it("sets the value correctly", function (done) {
client.mset(key, value, key2, value2);
setTimeout(function () {
async.parallel([function (next) {
client.get(key, function (err, res) {
helper.isString(value)(err, res);
next();
});
}, function (next) {
client.get(key2, function (err, res) {
helper.isString(value2)(err, res);
next();
});
}], function (err) {
done(err);
});
}, 100);
client.get(key, helper.isString(value));
client.get(key2, helper.isString(value2, done));
});
});