mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Removing tests that expect for an error to be thrown when the connection to MongoDB fails.
This commit is contained in:
@@ -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+)/);
|
||||
|
||||
@@ -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;
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user