We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d34dcc8 commit e646b4eCopy full SHA for e646b4e
test/test.js
@@ -166,6 +166,15 @@ tests.IPV6 = function () {
166
}
167
168
tests.UNIX_SOCKET = function () {
169
+ try {
170
+ var stat = require('fs').accessSync('/tmp/redis.sock');
171
+ } catch(err) {
172
+ if (err.code === 'ENOENT') {
173
+ console.log("Skipping SOCKET since none exists");
174
+ return run_next_test();
175
+ }
176
177
+
178
var unixClient = redis.createClient('/tmp/redis.sock', { parser: parser });
179
180
// if this fails, check the permission of unix socket.
0 commit comments