Skip to content

Commit ccebfbf

Browse files
committed
remove explicit isolation level config
1 parent 1b0be2b commit ccebfbf

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

tests/db-utils.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -147,16 +147,11 @@ export async function cleanupDb(prisma: PrismaClient) {
147147
//trigger
148148

149149
// Run each sql statement in the migration
150-
await prisma.$transaction(
151-
[
152-
...statements.map((statement) =>
153-
prisma.$executeRawUnsafe(`${statement}`),
154-
),
155-
],
156-
{
157-
isolationLevel: Prisma.TransactionIsolationLevel.Serializable,
158-
},
159-
)
150+
await prisma.$transaction([
151+
...statements.map((statement) =>
152+
prisma.$executeRawUnsafe(`${statement}`),
153+
),
154+
])
160155
}
161156
} catch (error) {
162157
console.error('Error cleaning up database:', error)

0 commit comments

Comments
 (0)