You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
uncomment some tests
This commit is contained in:
@@ -444,16 +444,16 @@ describe('Client', () => {
|
||||
}
|
||||
});
|
||||
|
||||
// testUtils.testWithClient('executeIsolated', async client => {
|
||||
// await client.sendCommand(['CLIENT', 'SETNAME', 'client']);
|
||||
testUtils.testWithClient('executeIsolated', async client => {
|
||||
await client.sendCommand(['CLIENT', 'SETNAME', 'client']);
|
||||
|
||||
// assert.equal(
|
||||
// await client.executeIsolated(isolatedClient =>
|
||||
// isolatedClient.sendCommand(['CLIENT', 'GETNAME'])
|
||||
// ),
|
||||
// null
|
||||
// );
|
||||
// }, GLOBAL.SERVERS.OPEN);
|
||||
assert.equal(
|
||||
await client.executeIsolated(isolatedClient =>
|
||||
isolatedClient.sendCommand(['CLIENT', 'GETNAME'])
|
||||
),
|
||||
null
|
||||
);
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
|
||||
async function killClient<M extends RedisModules, S extends RedisScripts>(client: RedisClientType<M, S>): Promise<void> {
|
||||
const onceErrorPromise = once(client, 'error');
|
||||
|
@@ -11,7 +11,7 @@ describe('COMMAND', () => {
|
||||
);
|
||||
});
|
||||
|
||||
// testUtils.testWithClient('client.command', async client => {
|
||||
// assertPingCommand((await client.command()).find(command => command.name === 'ping'));
|
||||
// }, GLOBAL.SERVERS.OPEN);
|
||||
testUtils.testWithClient('client.command', async client => {
|
||||
assertPingCommand((await client.command()).find(command => command.name === 'ping'));
|
||||
}, GLOBAL.SERVERS.OPEN);
|
||||
});
|
||||
|
Reference in New Issue
Block a user