diff --git a/test/helper.js b/test/helper.js index d007676ea6..8402b9cfc0 100644 --- a/test/helper.js +++ b/test/helper.js @@ -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 = [{