File tree Expand file tree Collapse file tree 1 file changed +12
-2
lines changed
Expand file tree Collapse file tree 1 file changed +12
-2
lines changed Original file line number Diff line number Diff 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 ( ) {
You can’t perform that action at this time.
0 commit comments