diff --git a/test/connection.spec.js b/test/connection.spec.js index 26a982a92cc..827ff69c8aa 100644 --- a/test/connection.spec.js +++ b/test/connection.spec.js @@ -543,7 +543,7 @@ describe('connection tests', function () { it('allows connecting with the redis url in the options object and works with protocols other than the redis protocol (e.g. http)', function (done) { client = redis.createClient({ - url: 'http://foo:porkchopsandwiches@' + config.HOST[ip] + '/3' + url: 'http://:porkchopsandwiches@' + config.HOST[ip] + '/3' }); assert.strictEqual(client.auth_pass, 'porkchopsandwiches'); assert.strictEqual(+client.selected_db, 3); diff --git a/test/unify_options.spec.js b/test/unify_options.spec.js index 40bdf22a8b5..dcdd46d330b 100644 --- a/test/unify_options.spec.js +++ b/test/unify_options.spec.js @@ -218,7 +218,7 @@ describe('createClient options', function () { option: [1, 2, 3], url: '//hm:abc@localhost:123/3' }); - assert.strictEqual(Object.keys(options).length, 6); + assert.strictEqual(Object.keys(options).length, 7); assert.strictEqual(options.option.length, 3); assert.strictEqual(options.host, 'localhost'); assert.strictEqual(options.port, '123');