From 09f0fe822862baf0f2a5d2b37537babffaae66d8 Mon Sep 17 00:00:00 2001 From: leibale Date: Wed, 17 Mar 2021 19:28:05 -0400 Subject: [PATCH] "fix" tests --- test/connection.spec.js | 2 +- test/unify_options.spec.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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');