Skip to content

Commit

Permalink
Assert all migrations pass
Browse files Browse the repository at this point in the history
  • Loading branch information
benjie committed Nov 18, 2024
1 parent 3337548 commit c8e3ffe
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion __tests__/migrate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,9 @@ test("multiple concurrent installs of the schema is fine", async () => {
);
}
} finally {
await Promise.allSettled(promises);
const results = await Promise.allSettled(promises);
await Promise.allSettled(clients.map((c) => c.release()));
expect(results.every((r) => r.status === "fulfilled")).toBeTruthy();
}
});
await withPgClient(async (pgClient) => {
Expand Down

0 comments on commit c8e3ffe

Please sign in to comment.