fix test flakes (#25240)
This commit is contained in:
1 parent
6169b92e98
commit
5cda123a4c
3 files changed
+5
-4
No files matched your search
@@ -8,9 +8,8 @@ import { excludePendingPaymentsExtension } from "./extensions/exclude-pending-pa
|
||||
import { PrismaClient, type Prisma } from "./generated/prisma/client";
|
||||
|
||||
const connectionString = process.env.DATABASE_URL || "";
|
||||
const isIntegrationTest = process.env.INTEGRATION_TESTS === "true";
|
||||
const pool =
|
||||
!isIntegrationTest && (process.env.USE_POOL === "true" || process.env.USE_POOL === "1")
|
||||
process.env.USE_POOL === "true" || process.env.USE_POOL === "1"
|
||||
? new Pool({
|
||||
connectionString: connectionString,
|
||||
max: 5,
|
||||
|
||||
Reference in new issue
Block a user