mirror of
https://github.com/getpaseo/paseo.git
synced 2026-10-30 21:23:04 +00:00
chore(lint): parallelize agent archiving in test-mcp-inject
This commit is contained in:
@@ -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 });
|
||||
|
||||
Reference in New Issue
Block a user