From 06121a65c476a16e18e59b139319f07dc91bcdad Mon Sep 17 00:00:00 2001 From: Ruben Bridgewater Date: Sun, 13 Sep 2015 02:21:21 +0200 Subject: [PATCH] Increase the coverage --- test/commands/blpop.spec.js | 2 ++ test/commands/get.spec.js | 1 + test/commands/getset.spec.js | 1 + 3 files changed, 4 insertions(+) diff --git a/test/commands/blpop.spec.js b/test/commands/blpop.spec.js index 843b351dc8..66a85dd3b4 100644 --- a/test/commands/blpop.spec.js +++ b/test/commands/blpop.spec.js @@ -23,7 +23,9 @@ describe("The 'blpop' method", function () { it('pops value immediately if list contains values', function (done) { bclient = redis.createClient.apply(redis.createClient, args); + redis.debug_mode = true; client.rpush("blocking list", "initial value", helper.isNumber(1)); + redis.debug_mode = false; bclient.blpop("blocking list", 0, function (err, value) { assert.strictEqual(value[0], "blocking list"); assert.strictEqual(value[1], "initial value"); diff --git a/test/commands/get.spec.js b/test/commands/get.spec.js index 6defc2cf6f..9aac49f14f 100644 --- a/test/commands/get.spec.js +++ b/test/commands/get.spec.js @@ -64,6 +64,7 @@ describe("The 'get' method", function () { }); it("gets the value correctly", function (done) { + client.GET(key, redis.print); // Use the utility function to print the result client.GET(key, function (err, res) { helper.isString(value)(err, res); done(err); diff --git a/test/commands/getset.spec.js b/test/commands/getset.spec.js index 32b178beca..2cc938aa6c 100644 --- a/test/commands/getset.spec.js +++ b/test/commands/getset.spec.js @@ -34,6 +34,7 @@ describe("The 'getset' method", function () { }); it("reports an error", function (done) { + client.GET(key, redis.print); // Use the utility function to print the error client.get(key, function (err, res) { assert.equal(err.message, 'Redis connection gone from end event.'); done();