Skip to content

Commit 65db5db

Browse files
author
Erin Spiceland
committed
Clarify this one test is only applicable for IPv4.
1 parent 2fd3b46 commit 65db5db

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

test/auth.spec.js

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,13 +41,14 @@ describe("client authentication", function () {
4141
client.auth(auth + 'bad');
4242
});
4343

44-
if (ip === 'IPv4')
45-
it('allows auth to be provided as config option for client', function (done) {
46-
client = redis.createClient('redis://foo:' + auth + '@' + config.HOST[ip] + ':' + config.PORT);
47-
client.on("ready", function () {
48-
return done();
44+
if (ip === 'IPv4') {
45+
it('allows auth to be provided as config option for client', function (done) {
46+
client = redis.createClient('redis://foo:' + auth + '@' + config.HOST[ip] + ':' + config.PORT);
47+
client.on("ready", function () {
48+
return done();
49+
});
4950
});
50-
});
51+
}
5152

5253
it('allows auth to be provided as part of redis url', function (done) {
5354
var args = config.configureClient(parser, ip, {

0 commit comments

Comments
 (0)