fix: flaky integrations tests (#25218)
* Revert "fix: resolve flaky integration tests (#25030)"
This reverts commit 4e5d4f67d5.
* update
* test
* Remove connection pool setup in Prisma index
Set the connection pool to undefined, removing conditional pooling logic.
* update
This commit is contained in:
1 parent
b8530e2d78
commit
44aa26292d
11 files changed
+128
-216
No files matched your search
@@ -8,8 +8,9 @@ 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 =
|
||||
process.env.USE_POOL === "true" || process.env.USE_POOL === "1"
|
||||
!isIntegrationTest && (process.env.USE_POOL === "true" || process.env.USE_POOL === "1")
|
||||
? new Pool({
|
||||
connectionString: connectionString,
|
||||
max: 5,
|
||||
|
||||
Reference in new issue
Block a user