mirror of
https://github.com/getpaseo/paseo.git
synced 2026-07-29 12:01:31 +00:00
chore(lint): parallelize client and relay transport test cleanup
This commit is contained in:
@@ -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;
|
||||
});
|
||||
|
||||
|
||||
@@ -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();
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user