Skip to content

Commit 74b8c93

Browse files
committed
fixup: check mongos list in config db
1 parent fea6ceb commit 74b8c93

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

packages/mongodb-runner/src/mongocluster.spec.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -471,6 +471,12 @@ describe('MongoCluster', function () {
471471
[60000, 'isdbgrid', true],
472472
[50000, 'isdbgrid', false],
473473
]);
474+
475+
const mongosList = await cluster.withClient(
476+
async (client) =>
477+
await client.db('config').collection('mongos').find().toArray(),
478+
);
479+
expect(mongosList).to.have.lengthOf(2);
474480
});
475481

476482
it('can add authentication options and verify them after serialization', async function () {

0 commit comments

Comments
 (0)