1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-07 13:22:56 +03:00

"forward port" changes from 4.6.9

This commit is contained in:
Leibale
2023-09-19 19:23:24 -04:00
parent 819ca71538
commit 099f16e45f
16 changed files with 306 additions and 260 deletions

View File

@@ -15,14 +15,12 @@ describe('LATENCY GRAPH', () => {
});
testUtils.testWithClient('client.latencyGraph', async client => {
await Promise.all([
const [,, reply] = await Promise.all([
client.configSet('latency-monitor-threshold', '1'),
client.sendCommand(['DEBUG', 'SLEEP', '0.001'])
client.sendCommand(['DEBUG', 'SLEEP', '0.001']),
client.latencyGraph('command')
]);
assert.equal(
typeof await client.latencyGraph('command'),
'string'
);
assert.equal(typeof reply, 'string');
}, GLOBAL.SERVERS.OPEN);
});