Skip to content

Commit

Permalink
- fix mongo test setup
Browse files Browse the repository at this point in the history
  • Loading branch information
rovilay committed Nov 24, 2024
1 parent a015e2f commit 90967dd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion auth/src/test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ beforeAll(async () => {
process.env.JWT_KEY = "asdfasdf";
process.env.NODE_TLS_REJECT_UNAUTHORIZED = "0";

const mongo = await MongoMemoryServer.create();
mongo = await MongoMemoryServer.create();
const mongoUri = mongo.getUri();

await mongoose.connect(mongoUri, {});
Expand Down
2 changes: 1 addition & 1 deletion orders/src/test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ beforeAll(async () => {
process.env.JWT_KEY = 'asdfasdf';
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

const mongo = await MongoMemoryServer.create();
mongo = await MongoMemoryServer.create();
const mongoUri = mongo.getUri();

await mongoose.connect(mongoUri, {});
Expand Down
2 changes: 1 addition & 1 deletion payments/src/test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ beforeAll(async () => {
process.env.JWT_KEY = 'asdfasdf';
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

const mongo = await MongoMemoryServer.create();
mongo = await MongoMemoryServer.create();
const mongoUri = mongo.getUri();

await mongoose.connect(mongoUri, {});
Expand Down
2 changes: 1 addition & 1 deletion tickets/src/test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ beforeAll(async () => {
process.env.JWT_KEY = 'asdfasdf';
process.env.NODE_TLS_REJECT_UNAUTHORIZED = '0';

const mongo = await MongoMemoryServer.create();
mongo = await MongoMemoryServer.create();
const mongoUri = mongo.getUri();

await mongoose.connect(mongoUri, {});
Expand Down

0 comments on commit 90967dd

Please sign in to comment.