1
0
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:
Salakar
2020-02-09 06:08:30 +00:00
parent a513c8b7e2
commit 79927c56a0
66 changed files with 149 additions and 172 deletions

View File

@@ -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));
});
});
});