From 99e93bde4168a4c287fe371908dc02aae2fbf33d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rados=C5=82aw=20Miernik?= Date: Tue, 26 Jul 2022 13:48:23 +0200 Subject: [PATCH] Fixed collection names in some tests. --- packages/mongo/collection_async_tests.js | 2 +- packages/mongo/collection_tests.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/mongo/collection_async_tests.js b/packages/mongo/collection_async_tests.js index 9f4f15f9bd..5d3a277fa0 100644 --- a/packages/mongo/collection_async_tests.js +++ b/packages/mongo/collection_async_tests.js @@ -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); diff --git a/packages/mongo/collection_tests.js b/packages/mongo/collection_tests.js index da34c62792..96b953617e 100644 --- a/packages/mongo/collection_tests.js +++ b/packages/mongo/collection_tests.js @@ -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 }