You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
tweaks based on running test-suite on Windows on an older Redis
This commit is contained in:
@@ -64,9 +64,9 @@ describe("The 'multi' method", function () {
|
||||
// Provoke an error at queue time
|
||||
multi1 = client.MULTI();
|
||||
multi1.mset("multifoo", "10", "multibar", "20", helper.isString("OK"));
|
||||
multi1.set("foo2", helper.isError());
|
||||
multi1.incr("multifoo", helper.isNumber(11));
|
||||
multi1.incr("multibar", helper.isNumber(21));
|
||||
multi1.set("foo2");
|
||||
multi1.incr("multifoo");
|
||||
multi1.incr("multibar");
|
||||
multi1.exec(function () {
|
||||
// Redis 2.6.5+ will abort transactions with errors
|
||||
// see: http://redis.io/topics/transactions
|
||||
@@ -89,6 +89,7 @@ describe("The 'multi' method", function () {
|
||||
});
|
||||
});
|
||||
|
||||
<<<<<<< HEAD
|
||||
// I'm unclear as to the difference between this test in the test above,
|
||||
// perhaps @mranney can clarify?
|
||||
it('roles back a transaction when an error was provoked at queue time', function (done) {
|
||||
@@ -137,8 +138,8 @@ describe("The 'multi' method", function () {
|
||||
assert.equal(replies, undefined);
|
||||
} else {
|
||||
assert.strictEqual(2, replies[0].length);
|
||||
assert.strictEqual("0", replies[0][0].toString());
|
||||
assert.strictEqual("0", replies[0][1].toString());
|
||||
assert.strictEqual(null, replies[0][0]);
|
||||
assert.strictEqual(null, replies[0][1]);
|
||||
|
||||
assert.strictEqual("1", replies[1].toString());
|
||||
assert.strictEqual("1", replies[2].toString());
|
||||
@@ -226,7 +227,7 @@ describe("The 'multi' method", function () {
|
||||
});
|
||||
|
||||
it('reports multiple exceptions when they occur', function (done) {
|
||||
if (!helper.serverVersionAtLeast(client, [2, 6, 5])) return done();
|
||||
helper.serverVersionAtLeast.bind(this)(client, [2, 6, 5])
|
||||
|
||||
client.multi().set("foo").exec(function (err, reply) {
|
||||
assert(Array.isArray(err), "err should be an array");
|
||||
|
Reference in New Issue
Block a user