use allSettled

This commit is contained in:
Andras Schmelczer 2025-11-23 15:09:35 +00:00
parent 83c15a77c3
commit 17fa584ea1
5 changed files with 15 additions and 22 deletions

View file

@ -53,11 +53,13 @@ async function runTest({
}
try {
await Promise.all(clients.map(async (client) => client.init()));
await Promise.allSettled(clients.map(async (client) => client.init()));
for (let i = 0; i < iterations; i++) {
console.info(`Iteration ${i + 1}/${iterations}`);
await Promise.all(clients.map(async (client) => client.act()));
await Promise.allSettled(
clients.map(async (client) => client.act())
);
await sleep(100);
}