|
1 | 1 | import { strict as assert } from 'assert'; |
2 | 2 | import testUtils, { GLOBAL } from '../test-utils'; |
3 | | -import { transformArguments } from './CLUSTER_COUNT-FAILURE-REPORTS'; |
| 3 | +import CLUSTER_COUNT_FAILURE_REPORTS from './CLUSTER_COUNT-FAILURE-REPORTS'; |
4 | 4 |
|
5 | 5 | describe('CLUSTER COUNT-FAILURE-REPORTS', () => { |
6 | | - it('transformArguments', () => { |
7 | | - assert.deepEqual( |
8 | | - transformArguments('0'), |
9 | | - ['CLUSTER', 'COUNT-FAILURE-REPORTS', '0'] |
10 | | - ); |
11 | | - }); |
| 6 | + it('transformArguments', () => { |
| 7 | + assert.deepEqual( |
| 8 | + CLUSTER_COUNT_FAILURE_REPORTS.transformArguments('0'), |
| 9 | + ['CLUSTER', 'COUNT-FAILURE-REPORTS', '0'] |
| 10 | + ); |
| 11 | + }); |
12 | 12 |
|
13 | | - testUtils.testWithCluster('clusterNode.clusterCountFailureReports', async cluster => { |
14 | | - const client = await cluster.nodeClient(cluster.masters[0]); |
15 | | - assert.equal( |
16 | | - typeof await client.clusterCountFailureReports( |
17 | | - await client.clusterMyId() |
18 | | - ), |
19 | | - 'number' |
20 | | - ); |
21 | | - }, GLOBAL.CLUSTERS.OPEN); |
| 13 | + testUtils.testWithCluster('clusterNode.clusterCountFailureReports', async cluster => { |
| 14 | + const [master] = cluster.masters, |
| 15 | + client = await cluster.nodeClient(master); |
| 16 | + assert.equal( |
| 17 | + typeof await client.clusterCountFailureReports(master.id), |
| 18 | + 'number' |
| 19 | + ); |
| 20 | + }, GLOBAL.CLUSTERS.OPEN); |
22 | 21 | }); |
0 commit comments