You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
Add hiredis to the tests if it's present
This commit is contained in:
@@ -113,8 +113,11 @@ module.exports = {
|
||||
}
|
||||
var parsers = ['javascript'];
|
||||
var protocols = ['IPv4'];
|
||||
if (process.platform !== 'win32') {
|
||||
try {
|
||||
require('hiredis');
|
||||
parsers.push('hiredis');
|
||||
} catch (e) {}
|
||||
if (process.platform !== 'win32') {
|
||||
protocols.push('IPv6', '/tmp/redis.sock');
|
||||
}
|
||||
var options = [{
|
||||
|
Reference in New Issue
Block a user