Skip to content

Commit 09f0fe8

Browse files
committedMar 17, 2021
"fix" tests
1 parent 428e1c8 commit 09f0fe8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎test/connection.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -543,7 +543,7 @@ describe('connection tests', function () {
543543

544544
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) {
545545
client = redis.createClient({
546-
url: 'http://foo:porkchopsandwiches@' + config.HOST[ip] + '/3'
546+
url: 'http://:porkchopsandwiches@' + config.HOST[ip] + '/3'
547547
});
548548
assert.strictEqual(client.auth_pass, 'porkchopsandwiches');
549549
assert.strictEqual(+client.selected_db, 3);

‎test/unify_options.spec.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ describe('createClient options', function () {
218218
option: [1, 2, 3],
219219
url: '//hm:abc@localhost:123/3'
220220
});
221-
assert.strictEqual(Object.keys(options).length, 6);
221+
assert.strictEqual(Object.keys(options).length, 7);
222222
assert.strictEqual(options.option.length, 3);
223223
assert.strictEqual(options.host, 'localhost');
224224
assert.strictEqual(options.port, '123');

0 commit comments

Comments
 (0)
Please sign in to comment.