Skip to content

Commit 8deae57

Browse files
committed
fix: added timeout for prisma client
1 parent 0887655 commit 8deae57

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

config/test.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,6 @@ module.exports = {
2121
COPILOT_CREDENTIALS_PASSWORD: process.env.COPILOT_CREDENTIALS_PASSWORD || '',
2222
USER_CREDENTIALS_USERNAME: process.env.USER_CREDENTIALS_USERNAME || '',
2323
USER_CREDENTIALS_PASSWORD: process.env.USER_CREDENTIALS_PASSWORD || '',
24-
AUTOMATED_TESTING_REPORTERS_FORMAT: process.env.AUTOMATED_TESTING_REPORTERS_FORMAT || ['cli', 'html']
24+
AUTOMATED_TESTING_REPORTERS_FORMAT: process.env.AUTOMATED_TESTING_REPORTERS_FORMAT || ['cli', 'html'],
25+
RESOURCE_SERVICE_PRISMA_TIMEOUT: process.env.RESOURCE_SERVICE_PRISMA_TIMEOUT ? parseInt(process.env.RESOURCE_SERVICE_PRISMA_TIMEOUT, 10) : 10000
2526
}

env.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,3 +31,5 @@ export DATABASE_URL="postgresql://johndoe:mypassword@localhost:5532/resourceapi?
3131
export MEMBER_DB_URL="postgresql://johndoe:mypassword@localhost:5632/memberdb"
3232

3333
export CHALLENGE_DB_URL="postgresql://johndoe:mypassword@localhost:5732/challengedb"
34+
35+
export RESOURCE_SERVICE_PRISMA_TIMEOU=10000

0 commit comments

Comments
 (0)