You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
tests: remove hiredis from testing suite
as parser no longer supports hiredis
This commit is contained in:
@@ -163,11 +163,6 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
var parsers = ['javascript'];
|
var parsers = ['javascript'];
|
||||||
var protocols = ['IPv4'];
|
var protocols = ['IPv4'];
|
||||||
// The js parser works the same as the hiredis parser, just activate this if you want to be on the safe side
|
|
||||||
// try {
|
|
||||||
// require('hiredis');
|
|
||||||
// parsers.push('hiredis');
|
|
||||||
// } catch (e) {/* ignore eslint */}
|
|
||||||
if (process.platform !== 'win32') {
|
if (process.platform !== 'win32') {
|
||||||
protocols.push('IPv6', '/tmp/redis.sock');
|
protocols.push('IPv6', '/tmp/redis.sock');
|
||||||
}
|
}
|
||||||
|
@@ -515,8 +515,8 @@ describe('publish/subscribe', function () {
|
|||||||
sub.stream.once('data', function () {
|
sub.stream.once('data', function () {
|
||||||
assert.strictEqual(sub.message_buffers, false);
|
assert.strictEqual(sub.message_buffers, false);
|
||||||
assert.strictEqual(sub.shouldBuffer, false);
|
assert.strictEqual(sub.shouldBuffer, false);
|
||||||
sub.on('pmessageBuffer', function (pattern, channel, message) {
|
sub.on('pmessageBuffer', function (pattern, channel) {
|
||||||
if (parser !== 'javascript' && typeof pattern === 'string') {
|
if (typeof pattern === 'string') {
|
||||||
pattern = new Buffer(pattern);
|
pattern = new Buffer(pattern);
|
||||||
channel = new Buffer(channel);
|
channel = new Buffer(channel);
|
||||||
}
|
}
|
||||||
@@ -524,10 +524,6 @@ describe('publish/subscribe', function () {
|
|||||||
assert.strictEqual(channel.inspect(), new Buffer('/foo').inspect());
|
assert.strictEqual(channel.inspect(), new Buffer('/foo').inspect());
|
||||||
sub.quit(end);
|
sub.quit(end);
|
||||||
});
|
});
|
||||||
if (parser === 'javascript') {
|
|
||||||
assert.notStrictEqual(sub.message_buffers, sub.buffers);
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
var batch = sub.batch();
|
var batch = sub.batch();
|
||||||
batch.psubscribe('*');
|
batch.psubscribe('*');
|
||||||
|
Reference in New Issue
Block a user