Skip to content

Commit cc7cddc

Browse files
committed
fix: test automerge separately
1 parent 721736a commit cc7cddc

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

packages/shell-api/src/shard.spec.ts

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2419,7 +2419,6 @@ describe('Shard', function () {
24192419
'shardingVersion',
24202420
'shards',
24212421
'autosplit',
2422-
'automerge',
24232422
'balancer',
24242423
'databases',
24252424
]);
@@ -2464,12 +2463,23 @@ describe('Shard', function () {
24642463
'shardingVersion',
24652464
'shards',
24662465
'autosplit',
2467-
'automerge',
24682466
'balancer',
24692467
'databases',
24702468
]);
24712469
});
24722470
});
2471+
describe('with a 7.0+ server', function () {
2472+
skipIfServerVersion(mongos, '< 7.0');
2473+
2474+
it('displays automerge status, if explicitly set', async function () {
2475+
await sh.startAutoMerger();
2476+
const result = await sh.status();
2477+
2478+
expect(result.value.automerge).to.deep.equal({
2479+
'Currently enabled': 'yes',
2480+
});
2481+
});
2482+
});
24732483
});
24742484
describe('turn on sharding', function () {
24752485
it('enableSharding for a db', async function () {

0 commit comments

Comments
 (0)