1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

fix #2046 - add support for multi in select (#2133)

* fix #2046 - add support for multi in select

* fix "Argument of type 'symbol | undefined' is not assignable to parameter of type 'number | undefined'"
This commit is contained in:
Leibale Eidelman
2022-05-26 09:55:47 -04:00
committed by GitHub
parent 7196b907e5
commit bf80c163b1
4 changed files with 52 additions and 13 deletions

View File

@@ -468,6 +468,20 @@ describe('Client', () => {
['PONG']
);
}, GLOBAL.SERVERS.OPEN);
testUtils.testWithClient('should remember selected db', async client => {
await client.multi()
.select(1)
.exec();
await killClient(client);
assert.equal(
(await client.clientInfo()).db,
1
);
}, {
...GLOBAL.SERVERS.OPEN,
minimumDockerVersion: [6, 2] // CLIENT INFO
});
});
testUtils.testWithClient('scripts', async client => {