test(server): installation in cluster

This commit is contained in:
mytharcher 2024-08-01 12:59:16 +00:00
parent 3e19b27d73
commit aa41ae4cc9

View File

@ -280,7 +280,7 @@ export async function createMockCluster({
...options ...options
}: MockClusterOptions = {}) { }: MockClusterOptions = {}) {
const nodes: MockServer[] = []; const nodes: MockServer[] = [];
for (const i of _.range(0, number || 2)) { for (let i = 0; i < number; i++) {
const app: MockServer = await createMockServer({ const app: MockServer = await createMockServer({
...options, ...options,
skipSupervisor: true, skipSupervisor: true,
@ -290,6 +290,7 @@ export async function createMockCluster({
channelPrefix: clusterName, channelPrefix: clusterName,
}, },
}); });
console.log('-------------', await app.isInstalled());
nodes.push(app); nodes.push(app);
} }
return { return {