1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00
This commit is contained in:
Leibale
2023-06-29 14:39:49 -04:00
parent ea2d9d2a77
commit c109fbf751
36 changed files with 584 additions and 720 deletions

View File

@@ -14,14 +14,17 @@ describe('ZPOPMAX COUNT', () => {
const members = [{
value: '1',
score: 1
}, {
value: '2',
score: 2
}];
const [ , reply] = await Promise.all([
client.zAdd('key', members),
client.zPopMaxCount('key', 1)
client.zPopMaxCount('key', members.length)
]);
assert.deepEqual(reply, members);
assert.deepEqual(reply, members.reverse());
}, {
client: GLOBAL.SERVERS.OPEN,
cluster: GLOBAL.SERVERS.OPEN