Skip to content

Commit 06121a6

Browse files
author
Ruben Bridgewater
committed
Increase the coverage
1 parent 8fa5b93 commit 06121a6

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

test/commands/blpop.spec.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ describe("The 'blpop' method", function () {
2323

2424
it('pops value immediately if list contains values', function (done) {
2525
bclient = redis.createClient.apply(redis.createClient, args);
26+
redis.debug_mode = true;
2627
client.rpush("blocking list", "initial value", helper.isNumber(1));
28+
redis.debug_mode = false;
2729
bclient.blpop("blocking list", 0, function (err, value) {
2830
assert.strictEqual(value[0], "blocking list");
2931
assert.strictEqual(value[1], "initial value");

test/commands/get.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ describe("The 'get' method", function () {
6464
});
6565

6666
it("gets the value correctly", function (done) {
67+
client.GET(key, redis.print); // Use the utility function to print the result
6768
client.GET(key, function (err, res) {
6869
helper.isString(value)(err, res);
6970
done(err);

test/commands/getset.spec.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ describe("The 'getset' method", function () {
3434
});
3535

3636
it("reports an error", function (done) {
37+
client.GET(key, redis.print); // Use the utility function to print the error
3738
client.get(key, function (err, res) {
3839
assert.equal(err.message, 'Redis connection gone from end event.');
3940
done();

0 commit comments

Comments
 (0)