1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

fix: messageBuffers is now handled properly again

This commit is contained in:
Ruben Bridgewater
2017-05-28 08:32:38 +02:00
parent b2e18344d9
commit 6796f8806a
3 changed files with 5 additions and 3 deletions

View File

@@ -458,9 +458,8 @@ describe('publish/subscribe', () => {
const end = helper.callFuncAfter(done, 3)
const data = Array(10000).join('äüs^öéÉÉ`e')
sub.set('foo', data).then(() => {
sub.get('foo')
sub.get('foo').then((res) => assert.strictEqual(typeof res, 'string'))
sub._stream.once('data', () => {
// TODO: Improve this test to test if a buffer is returned for any call
assert.strictEqual(sub.messageBuffers, false)
assert.strictEqual(sub.shouldBuffer, false)
sub.on('pmessageBuffer', (pattern, channel, message) => {