chore(lint): parallelize client and relay transport test cleanup

This commit is contained in:
Mohamed Boudra
2026-04-24 03:31:19 +07:00
parent 7742727078
commit a5742d0c3c
2 changed files with 2 additions and 6 deletions

View File

@@ -91,9 +91,7 @@ function wrapSessionMessage(message: unknown): string {
const clients: DaemonClient[] = [];
afterEach(async () => {
for (const client of clients) {
await client.close();
}
await Promise.all(clients.map((client) => client.close()));
clients.length = 0;
});

View File

@@ -119,9 +119,7 @@ describe("relay-transport control lifecycle", () => {
});
afterEach(async () => {
for (const controller of controllers) {
await controller.stop();
}
await Promise.all(controllers.map((controller) => controller.stop()));
controllers.length = 0;
vi.useRealTimers();
});