Skip to content

Commit

Permalink
Fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
harryadel committed Jan 8, 2024
1 parent 3f6a3c4 commit 975352c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/collection2.tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -673,6 +673,8 @@ describe('collection2', function () {
if (Meteor.isServer) {
const testCollection = new Mongo.Collection('duplicate_code_collection');
await testCollection.createIndexAsync({ name: 1 }, { unique: true });
// remove any inserts on previous re-runs to avoid test failing
await testCollection.removeAsync({});
// first insert
await testCollection.insertAsync({ name: 'foo' });
try {
Expand Down

0 comments on commit 975352c

Please sign in to comment.