Fixed collection names in some tests.

This commit is contained in:
Radosław Miernik
2022-07-26 13:48:23 +02:00
parent a6319476ba
commit 99e93bde41
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -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(
{},
@@ -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 }