|
1 | | -import {strict as assert} from 'assert'; |
2 | | -import testUtils, {GLOBAL} from '../test-utils'; |
3 | | -import { transformArguments } from './LATENCY_LATEST'; |
| 1 | +// import {strict as assert} from 'assert'; |
| 2 | +// import testUtils, {GLOBAL} from '../test-utils'; |
| 3 | +// import { transformArguments } from './LATENCY_LATEST'; |
4 | 4 |
|
5 | | -describe('LATENCY LATEST', () => { |
6 | | - it('transformArguments', () => { |
7 | | - assert.deepEqual( |
8 | | - transformArguments(), |
9 | | - ['LATENCY', 'LATEST'] |
10 | | - ); |
11 | | - }); |
| 5 | +// describe('LATENCY LATEST', () => { |
| 6 | +// it('transformArguments', () => { |
| 7 | +// assert.deepEqual( |
| 8 | +// transformArguments(), |
| 9 | +// ['LATENCY', 'LATEST'] |
| 10 | +// ); |
| 11 | +// }); |
12 | 12 |
|
13 | | - testUtils.testWithClient('client.latencyLatest', async client => { |
14 | | - await Promise.all([ |
15 | | - client.configSet('latency-monitor-threshold', '100'), |
16 | | - client.sendCommand(['DEBUG', 'SLEEP', '1']) |
17 | | - ]); |
18 | | - const latency = await client.latencyLatest(); |
19 | | - assert.ok(Array.isArray(latency)); |
20 | | - for (const [name, timestamp, latestLatency, allTimeLatency] of latency) { |
21 | | - assert.equal(typeof name, 'string'); |
22 | | - assert.equal(typeof timestamp, 'number'); |
23 | | - assert.equal(typeof latestLatency, 'number'); |
24 | | - assert.equal(typeof allTimeLatency, 'number'); |
25 | | - } |
26 | | - }, GLOBAL.SERVERS.OPEN); |
27 | | -}); |
| 13 | +// testUtils.testWithClient('client.latencyLatest', async client => { |
| 14 | +// await Promise.all([ |
| 15 | +// client.configSet('latency-monitor-threshold', '100'), |
| 16 | +// client.sendCommand(['DEBUG', 'SLEEP', '1']) |
| 17 | +// ]); |
| 18 | +// const latency = await client.latencyLatest(); |
| 19 | +// assert.ok(Array.isArray(latency)); |
| 20 | +// for (const [name, timestamp, latestLatency, allTimeLatency] of latency) { |
| 21 | +// assert.equal(typeof name, 'string'); |
| 22 | +// assert.equal(typeof timestamp, 'number'); |
| 23 | +// assert.equal(typeof latestLatency, 'number'); |
| 24 | +// assert.equal(typeof allTimeLatency, 'number'); |
| 25 | +// } |
| 26 | +// }, GLOBAL.SERVERS.OPEN); |
| 27 | +// }); |
0 commit comments