1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00
This commit is contained in:
Leibale
2023-07-05 16:08:23 -04:00
parent 2dd1f2ca38
commit d298da82dd
8 changed files with 21 additions and 21 deletions

View File

@@ -1,5 +1,5 @@
import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import testUtils, { GLOBAL, MIN_BLOCKING_TIME } from '../test-utils';
import BLMOVE from './BLMOVE';
describe('BLMOVE', () => {
@@ -14,7 +14,7 @@ describe('BLMOVE', () => {
testUtils.testAll('blMove - null', async client => {
assert.equal(
await client.blMove('{tag}source', '{tag}destination', 'LEFT', 'RIGHT', Number.MIN_VALUE),
await client.blMove('{tag}source', '{tag}destination', 'LEFT', 'RIGHT', MIN_BLOCKING_TIME),
null
);
}, {
@@ -25,7 +25,7 @@ describe('BLMOVE', () => {
testUtils.testAll('blMove - with member', async client => {
const [, reply] = await Promise.all([
client.lPush('{tag}source', 'element'),
client.blMove('{tag}source', '{tag}destination', 'LEFT', 'RIGHT', Number.MIN_VALUE)
client.blMove('{tag}source', '{tag}destination', 'LEFT', 'RIGHT', MIN_BLOCKING_TIME)
]);
assert.equal(reply, 'element');
}, {