From 8cd7a8c4f8add72a08b7852e9571f9df75ae5eb7 Mon Sep 17 00:00:00 2001 From: luin Date: Tue, 3 May 2016 20:53:53 +0800 Subject: [PATCH] test: add test for dropBufferSupport and pipeline --- test/functional/drop_buffer_support.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/functional/drop_buffer_support.js b/test/functional/drop_buffer_support.js index fcc741e2a..c92973e90 100644 --- a/test/functional/drop_buffer_support.js +++ b/test/functional/drop_buffer_support.js @@ -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(); + }); + }); }); });