Skip to content

Commit

Permalink
"fix" tests
Browse files Browse the repository at this point in the history
  • Loading branch information
leibale committed Mar 17, 2021
1 parent 428e1c8 commit 09f0fe8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/connection.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion test/unify_options.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down

0 comments on commit 09f0fe8

Please sign in to comment.