You've already forked node-redis
mirror of
https://github.com/redis/node-redis.git
synced 2025-08-06 02:15:48 +03:00
22 lines
720 B
TypeScript
22 lines
720 B
TypeScript
import { strict as assert } from 'node:assert';
|
|
import testUtils, { GLOBAL } from '../test-utils';
|
|
import CLUSTER_COUNT_FAILURE_REPORTS from './CLUSTER_COUNT-FAILURE-REPORTS';
|
|
|
|
describe('CLUSTER COUNT-FAILURE-REPORTS', () => {
|
|
it('transformArguments', () => {
|
|
assert.deepEqual(
|
|
CLUSTER_COUNT_FAILURE_REPORTS.transformArguments('0'),
|
|
['CLUSTER', 'COUNT-FAILURE-REPORTS', '0']
|
|
);
|
|
});
|
|
|
|
testUtils.testWithCluster('clusterNode.clusterCountFailureReports', async cluster => {
|
|
const [master] = cluster.masters,
|
|
client = await cluster.nodeClient(master);
|
|
assert.equal(
|
|
typeof await client.clusterCountFailureReports(master.id),
|
|
'number'
|
|
);
|
|
}, GLOBAL.CLUSTERS.OPEN);
|
|
});
|