Skip to content

Commit

Permalink
Fixed collection names in some tests.
Browse files Browse the repository at this point in the history
  • Loading branch information
radekmie committed Jul 26, 2022
1 parent a631947 commit 99e93bd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/mongo/collection_async_tests.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Tinytest.add('async collection - check for methods presence', function (test) {
const isFunction = fn => test.equal(typeof fn, 'function');

const collection = new Mongo.Collection('myAsyncCollection');
const collection = new Mongo.Collection('myAsyncCollection' + test.id);
isFunction(collection.createCappedCollectionAsync);
isFunction(collection.createIndexAsync);
isFunction(collection.dropCollectionAsync);
Expand Down
4 changes: 2 additions & 2 deletions packages/mongo/collection_tests.js
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ Tinytest.add('collection - calling find with a valid readPreference',
if (Meteor.isServer) {
const defaultReadPreference = 'primary';
const customReadPreference = 'secondaryPreferred';
const collection = new Mongo.Collection('readPreferenceTest');
const collection = new Mongo.Collection('readPreferenceTest' + test.id);
const defaultCursor = collection.find();
const customCursor = collection.find(
{},
Expand Down Expand Up @@ -190,7 +190,7 @@ Tinytest.add('collection - calling find with an invalid readPreference',
function(test) {
if (Meteor.isServer) {
const invalidReadPreference = 'INVALID';
const collection = new Mongo.Collection('readPreferenceTest2');
const collection = new Mongo.Collection('readPreferenceTest2' + test.id);
const cursor = collection.find(
{},
{ readPreference: invalidReadPreference }
Expand Down

0 comments on commit 99e93bd

Please sign in to comment.