Skip to content

Commit

Permalink
fix(ci): update docker-compose and mongo logs
Browse files Browse the repository at this point in the history
  • Loading branch information
Mihoub2 committed Sep 6, 2024
1 parent a82cded commit 554d1c1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docker-compose-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ services:
start_period: 30s

mongodb:
image: mongo:5.0
image: mongo:6.0
ports:
- 27017:27017
restart: always
Expand Down
2 changes: 1 addition & 1 deletion src/services/mongo.service.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import logger from './logger.service';

const { mongoDbName, mongoUri } = config.mongo;

const client = new MongoClient(mongoUri);
const client = new MongoClient(mongoUri, { directConnection: process.env.NODE_ENV === 'testing' });

logger.info(`Try to connect to mongo... ${mongoUri}`);
await client.connect().catch((e) => {
Expand Down

0 comments on commit 554d1c1

Please sign in to comment.