You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-09 00:22:08 +03:00
fix WAIT spec & clean code
This commit is contained in:
@@ -10,10 +10,13 @@ describe('WAIT', () => {
|
|||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
testUtils.testWithClient('client.wait', async client => {
|
testUtils.testAll('wait', async client => {
|
||||||
assert.equal(
|
assert.equal(
|
||||||
await client.wait(0, 1),
|
await client.wait(0, 1),
|
||||||
0
|
0
|
||||||
);
|
);
|
||||||
}, GLOBAL.SERVERS.OPEN);
|
}, {
|
||||||
|
client: GLOBAL.SERVERS.OPEN,
|
||||||
|
cluster: GLOBAL.CLUSTERS.OPEN
|
||||||
|
});
|
||||||
});
|
});
|
||||||
|
@@ -1,4 +1,4 @@
|
|||||||
import { RedisArgument, SimpleStringReply, Command, NumberReply } from '../RESP/types';
|
import { NumberReply, Command } from '../RESP/types';
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
FIRST_KEY_INDEX: undefined,
|
FIRST_KEY_INDEX: undefined,
|
||||||
|
Reference in New Issue
Block a user