Skip to content

Commit

Permalink
remove explicit isolation level config
Browse files Browse the repository at this point in the history
  • Loading branch information
devneill committed Sep 29, 2024
1 parent 1b0be2b commit ccebfbf
Showing 1 changed file with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions tests/db-utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -147,16 +147,11 @@ export async function cleanupDb(prisma: PrismaClient) {
//trigger

// Run each sql statement in the migration
await prisma.$transaction(
[
...statements.map((statement) =>
prisma.$executeRawUnsafe(`${statement}`),
),
],
{
isolationLevel: Prisma.TransactionIsolationLevel.Serializable,
},
)
await prisma.$transaction([
...statements.map((statement) =>
prisma.$executeRawUnsafe(`${statement}`),
),
])
}
} catch (error) {
console.error('Error cleaning up database:', error)
Expand Down

0 comments on commit ccebfbf

Please sign in to comment.