Skip to content

Commit

Permalink
fixed some test issues
Browse files Browse the repository at this point in the history
  • Loading branch information
SuhravHussen committed Jul 25, 2023
1 parent 9752bd0 commit 4466031
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion orders/src/test/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ beforeAll(async () => {
process.env.JWT_SECRET = "test";
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 @@ -7,7 +7,7 @@ beforeAll(async () => {
process.env.JWT_SECRET = "test";
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 4466031

Please sign in to comment.