You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
Refactor the test suite and remove duplicated code
This commit is contained in:
@@ -11,7 +11,8 @@ describe("client authentication", function () {
|
||||
});
|
||||
});
|
||||
|
||||
function allTests(parser, ip) {
|
||||
helper.allTests(function(parser, ip, args) {
|
||||
|
||||
describe("using " + parser + " and " + ip, function () {
|
||||
var args = config.configureClient(parser, ip);
|
||||
var auth = 'porkchopsandwiches';
|
||||
@@ -73,13 +74,6 @@ describe("client authentication", function () {
|
||||
});
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
['javascript', 'hiredis'].forEach(function (parser) {
|
||||
allTests(parser, "/tmp/redis.sock");
|
||||
['IPv4', 'IPv6'].forEach(function (ip) {
|
||||
allTests(parser, ip);
|
||||
})
|
||||
});
|
||||
|
||||
after(function (done) {
|
||||
|
Reference in New Issue
Block a user