Skip to content

Commit d159b3d

Browse files
committed
fixup: be more correct/more explicit in replset hosts test
1 parent 23bb0d3 commit d159b3d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,9 @@ describe('MongoCluster', function () {
125125
const hello = await cluster.withClient(async (client) => {
126126
return await client.db('admin').command({ hello: 1 });
127127
});
128-
expect(+hello.passives.length + +hello.hosts.length).to.equal(5);
128+
expect(hello.hosts).to.have.lengthOf(1);
129+
expect(hello.passives).to.have.lengthOf(3);
130+
expect(hello.arbiters).to.have.lengthOf(1);
129131
});
130132

131133
it('can spawn a 6.x sharded cluster', async function () {

0 commit comments

Comments
 (0)