Skip to content

Commit

Permalink
test: add test for dropBufferSupport and pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
luin committed May 3, 2016
1 parent beca075 commit 8cd7a8c
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions test/functional/drop_buffer_support.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,5 +74,19 @@ describe('dropBufferSupport', function () {
done();
});
});

it('should work with pipeline', function (done) {
var redis = new Redis({ dropBufferSupport: true });
var pipeline = redis.pipeline();
pipeline.set('foo', 'bar');
pipeline.get(new Buffer('foo'));
pipeline.exec(function (err, res) {
console.log(err, res);
expect(err).to.eql(null);
expect(res[0][1]).to.eql('OK');
expect(res[1][1]).to.eql('bar');
done();
});
});
});
});

0 comments on commit 8cd7a8c

Please sign in to comment.