1
0
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:
Ruben Bridgewater
2015-10-10 02:17:31 +02:00
parent 0f43aa5294
commit 987e4f8a7c

View File

@@ -113,8 +113,11 @@ module.exports = {
} }
var parsers = ['javascript']; var parsers = ['javascript'];
var protocols = ['IPv4']; var protocols = ['IPv4'];
if (process.platform !== 'win32') { try {
require('hiredis');
parsers.push('hiredis'); parsers.push('hiredis');
} catch (e) {}
if (process.platform !== 'win32') {
protocols.push('IPv6', '/tmp/redis.sock'); protocols.push('IPv6', '/tmp/redis.sock');
} }
var options = [{ var options = [{