mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Fixed collection names in some tests.
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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 }
|
||||
|
||||
Reference in New Issue
Block a user