You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-17 19:41:06 +03:00
Do not use "timers/promises", fix "isRedisVersionGreaterThan"
This commit is contained in:
@@ -1,8 +1,10 @@
|
||||
import { strict as assert } from 'assert';
|
||||
import { TestRedisServers, itWithClient } from '../test-utils';
|
||||
import { TestRedisServers, itWithClient, describeHandleMinimumRedisVersion } from '../test-utils';
|
||||
import { transformArguments } from './SMISMEMBER';
|
||||
|
||||
describe('SMISMEMBER', () => {
|
||||
describeHandleMinimumRedisVersion([6, 2]);
|
||||
|
||||
it('transformArguments', () => {
|
||||
assert.deepEqual(
|
||||
transformArguments('key', ['1', '2']),
|
||||
|
@@ -78,12 +78,9 @@ describe('XCLAIM', () => {
|
||||
});
|
||||
|
||||
itWithClient(TestRedisServers.OPEN, 'client.xClaim', async client => {
|
||||
await Promise.all([
|
||||
client.xGroupCreate('key', 'group', '$', {
|
||||
MKSTREAM: true
|
||||
}),
|
||||
client.xGroupCreateConsumer('key', 'group', 'consumer'),
|
||||
]);
|
||||
await client.xGroupCreate('key', 'group', '$', {
|
||||
MKSTREAM: true
|
||||
});
|
||||
|
||||
assert.deepEqual(
|
||||
await client.xClaim('key', 'group', 'consumer', 1, '0-0'),
|
||||
|
@@ -11,12 +11,9 @@ describe('XCLAIM JUSTID', () => {
|
||||
});
|
||||
|
||||
itWithClient(TestRedisServers.OPEN, 'client.xClaimJustId', async client => {
|
||||
await Promise.all([
|
||||
client.xGroupCreate('key', 'group', '$', {
|
||||
MKSTREAM: true
|
||||
}),
|
||||
client.xGroupCreateConsumer('key', 'group', 'consumer'),
|
||||
]);
|
||||
await client.xGroupCreate('key', 'group', '$', {
|
||||
MKSTREAM: true
|
||||
});
|
||||
|
||||
assert.deepEqual(
|
||||
await client.xClaimJustId('key', 'group', 'consumer', 1, '0-0'),
|
||||
|
Reference in New Issue
Block a user