Removing tests that expect for an error to be thrown when the connection to MongoDB fails.

This commit is contained in:
Frederico Maia Arantes
2022-08-17 11:07:46 +02:00
parent 1cba676a11
commit a05a3fc565
2 changed files with 0 additions and 28 deletions

View File

@@ -3229,18 +3229,6 @@ Meteor.isServer && testAsyncMulti("mongo-livedata - update with replace forbidde
}
]);
Meteor.isServer && Tinytest.add(
"mongo-livedata - connection failure throws",
function (test) {
test.throws(function () {
const connection = new MongoInternals.Connection('mongodb://this-does-not-exist.test/asdf');
// Same as `MongoInternals.defaultRemoteCollectionDriver`.
Promise.await(connection.client.connect());
});
}
);
Meteor.isServer && Tinytest.add("mongo-livedata - npm modules", function (test) {
// Make sure the version number looks like a version number.
test.matches(MongoInternals.NpmModules.mongodb.version, /^4\.(\d+)\.(\d+)/);

View File

@@ -163,19 +163,3 @@ process.env.MONGO_OPLOG_URL && testAsyncMulti(
}
]
);
Tinytest.addAsync("mongo-livedata - oplog - _onFailover", async () => {
const driver = MongoInternals.defaultRemoteCollectionDriver();
const failoverPromise = new Promise(resolve => {
driver.mongo._onFailover(() => {
resolve();
});
});
await driver.mongo.db.admin().command({
replSetStepDown: 1,
force: true
});
return failoverPromise;
});