mirror of
https://gitee.com/nocobase/nocobase.git
synced 2025-05-09 23:49:27 +08:00
test(server): installation in cluster
This commit is contained in:
parent
3e19b27d73
commit
aa41ae4cc9
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user