Skip to content

Commit

Permalink
Chore: Disable Sessions Aggregates tests locally (#20607)
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Feb 12, 2021
1 parent 4ec6e41 commit 4f05c55
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions app/models/server/models/Sessions.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -250,11 +250,13 @@ describe('Sessions Aggregates', () => {
.then((testMongoUrl) => { process.env.MONGO_URL = testMongoUrl; });
});

after(() => { mongoUnit.stop(); });
after(() => {
mongoUnit.stop();
});
}

before(async () => {
const client = await MongoClient.connect(process.env.MONGO_URL);
const client = await MongoClient.connect(process.env.MONGO_URL, { useUnifiedTopology: true });
db = client.db('test');

after(() => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,7 @@
},
"husky": {
"hooks": {
"pre-push": "meteor npm run lint && meteor npm run testunit"
"pre-push": "meteor npm run lint && meteor npm run testunit -- --exclude app/models/server/models/Sessions.tests.js"
}
},
"houston": {
Expand Down

0 comments on commit 4f05c55

Please sign in to comment.