You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-07 13:22:56 +03:00
tests: remove unused parser
client option from all tests & helpers
This commit is contained in:
@@ -161,7 +161,6 @@ module.exports = {
|
||||
cb = opts;
|
||||
opts = {};
|
||||
}
|
||||
var parsers = ['javascript'];
|
||||
var protocols = ['IPv4'];
|
||||
if (process.platform !== 'win32') {
|
||||
protocols.push('IPv6', '/tmp/redis.sock');
|
||||
@@ -180,13 +179,11 @@ module.exports = {
|
||||
}
|
||||
}
|
||||
describe('using options: ' + strOptions, function () {
|
||||
parsers.forEach(function (parser) {
|
||||
protocols.forEach(function (ip, i) {
|
||||
if (i !== 0 && !opts.allConnections) {
|
||||
return;
|
||||
}
|
||||
cb(parser, ip, config.configureClient(parser, ip, options));
|
||||
});
|
||||
protocols.forEach(function (ip, i) {
|
||||
if (i !== 0 && !opts.allConnections) {
|
||||
return;
|
||||
}
|
||||
cb(ip, config.configureClient(ip, options));
|
||||
});
|
||||
});
|
||||
});
|
||||
|
Reference in New Issue
Block a user