Skip to content

Commit 993a155

Browse files
committed
cluster events tests adding exact masters amount
1 parent 9454839 commit 993a155

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/client/lib/cluster/index.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -343,7 +343,7 @@ describe('Cluster', () => {
343343
describe('clusterEvents', () => {
344344
testUtils.testWithCluster('should fire events', async (cluster) => {
345345
const log: string[] = [];
346-
const { numberOfMasters } = GLOBAL.CLUSTERS.WITH_REPLICAS;
346+
const numberOfMasters = 2;
347347
const nodeConnect = numberOfMasters;
348348
const nodeReady = nodeConnect + numberOfMasters;
349349
const connect = nodeReady + 1;
@@ -393,6 +393,8 @@ describe('Cluster', () => {
393393
}, {
394394
...GLOBAL.CLUSTERS.OPEN,
395395
disableClusterSetup: true,
396+
numberOfMasters: 2,
397+
numberOfReplicas: 1,
396398
});
397399
});
398400

0 commit comments

Comments
 (0)