File tree Expand file tree Collapse file tree 1 file changed +15
-0
lines changed
Expand file tree Collapse file tree 1 file changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -2518,6 +2518,21 @@ describe('Shard', function () {
25182518 ) ;
25192519 } ) ;
25202520 } ) ;
2521+ describe ( 'automerge' , function ( ) {
2522+ skipIfServerVersion ( mongos , '< 7.0' ) ; // Available from 7.0
2523+ it ( 'stops correctly' , async function ( ) {
2524+ expect ( ( await sh . stopAutoMerger ( ) ) . acknowledged ) . to . equal ( true ) ;
2525+ expect (
2526+ ( await sh . status ( ) ) . value . automerge [ 'Currently enabled' ]
2527+ ) . to . equal ( 'no' ) ;
2528+ } ) ;
2529+ it ( 'enables correctly' , async function ( ) {
2530+ expect ( ( await sh . startAutoMerger ( ) ) . acknowledged ) . to . equal ( true ) ;
2531+ expect (
2532+ ( await sh . status ( ) ) . value . automerge [ 'Currently enabled' ]
2533+ ) . to . equal ( 'yes' ) ;
2534+ } ) ;
2535+ } ) ;
25212536 describe ( 'autosplit' , function ( ) {
25222537 skipIfServerVersion ( mongos , '> 6.x' ) ; // Auto-splitter is removed in 7.0
25232538 it ( 'disables correctly' , async function ( ) {
You can’t perform that action at this time.
0 commit comments