Create stacks serially before setting config concurrently
@@ -477,13 +477,15 @@ describe("LocalWorkspace", () => {
"PULUMI_CONFIG_PASSPHRASE": "test",
},
});
+ for (let i = 0; i < stacks.length; i++) {
+ await Stack.create(stacks[i], ws);
+ }
for (let i = 0; i < stacks.length; i++) {
const x = i;
const s = stacks[i];
dones.push((async () => {
- const stack = await Stack.createOrSelect(s, ws);
for (let j = 0; j < 20; j++) {
- await stack.setConfig("var-" + j, { value: ((x*20)+j).toString() });
+ await ws.setConfig(s, "var-" + j, { value: ((x*20)+j).toString()});
}
})());
}
