1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00
This commit is contained in:
Leibale
2023-07-10 12:20:40 -04:00
parent a4aa903987
commit 3fa7717a7d
20 changed files with 648 additions and 711 deletions

View File

@@ -1,8 +1,8 @@
import { strict as assert } from 'assert';
import testUtils, { GLOBAL } from '../test-utils';
import { transformArguments } from './SLOWLOG';
import SLOWLOG from './SLOWLOG';
describe('SLOWLOG', () => {
describe('GRAPH.SLOWLOG', () => {
it('transformArguments', () => {
assert.deepEqual(
transformArguments('key'),
@@ -11,8 +11,10 @@ describe('SLOWLOG', () => {
});
testUtils.testWithClient('client.graph.slowLog', async client => {
await client.graph.query('key', 'RETURN 1');
const reply = await client.graph.slowLog('key');
const [, reply] = await Promise.all([
client.graph.query('key', 'RETURN 1'),
client.graph.slowLog('key')
]);
assert.equal(reply.length, 1);
}, GLOBAL.SERVERS.OPEN);
});