1
0
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:
leibale
2021-11-09 19:32:15 -05:00
parent 3ad8a227eb
commit 0e70f245c8
2 changed files with 12 additions and 12 deletions

View File

@@ -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');

View File

@@ -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);
});