1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

"fix" tests

This commit is contained in:
leibale
2021-03-17 19:28:05 -04:00
parent 428e1c8a7b
commit 09f0fe8228
2 changed files with 2 additions and 2 deletions

View File

@@ -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);

View File

@@ -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');