chore(lint): parallelize agent archiving in test-mcp-inject

This commit is contained in:
Mohamed Boudra
2026-04-24 06:32:08 +07:00
parent 5467d3cee8
commit 537a2a2929
+3 -3
View File
@@ -181,9 +181,9 @@ async function main(): Promise<void> {
),
);
} finally {
for (const agentId of createdAgentIds) {
await client.archiveAgent(agentId).catch(() => undefined);
}
await Promise.all(
createdAgentIds.map((agentId) => client.archiveAgent(agentId).catch(() => undefined)),
);
await client.close().catch(() => undefined);
await daemon.close().catch(() => undefined);
await rm(rootCwd, { recursive: true, force: true });