You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
Revert "Skip SOCKET test if Redis is not listening on a socket"
This reverts commit e646b4eb39
.
This commit is contained in:
@@ -166,15 +166,6 @@ tests.IPV6 = function () {
|
|||||||
}
|
}
|
||||||
|
|
||||||
tests.UNIX_SOCKET = function () {
|
tests.UNIX_SOCKET = function () {
|
||||||
try {
|
|
||||||
var stat = require('fs').accessSync('/tmp/redis.sock');
|
|
||||||
} catch(err) {
|
|
||||||
if (err.code === 'ENOENT') {
|
|
||||||
console.log("Skipping SOCKET since none exists");
|
|
||||||
return run_next_test();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
var unixClient = redis.createClient('/tmp/redis.sock', { parser: parser });
|
var unixClient = redis.createClient('/tmp/redis.sock', { parser: parser });
|
||||||
|
|
||||||
// if this fails, check the permission of unix socket.
|
// if this fails, check the permission of unix socket.
|
||||||
|
Reference in New Issue
Block a user