File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
packages/compass-global-writes/src/store Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -51,7 +51,7 @@ const managedNamespace: ManagedNamespace = {
5151
5252const failedShardingProcess : AutomationAgentProcess = {
5353 statusType : 'ERROR' ,
54- workingOnShort : 'ShardingCollections ' ,
54+ workingOnShort : 'ShardCollections ' ,
5555 errorText : `before timestamp[01:02:03.456]Failed to shard ${ NS } ` ,
5656} ;
5757
@@ -395,6 +395,7 @@ describe('GlobalWritesStore Store', function () {
395395 } ,
396396 unique : true ,
397397 } ) ,
398+ hasShardingError : ( ) => true , // mismatch will also trigger an error
398399 } ) ;
399400 await waitFor ( ( ) => {
400401 expect ( store . getState ( ) . status ) . to . equal ( 'SHARD_KEY_MISMATCH' ) ;
@@ -412,6 +413,7 @@ describe('GlobalWritesStore Store', function () {
412413 } ,
413414 unique : false , // this does not match
414415 } ) ,
416+ hasShardingError : ( ) => true , // mismatch will also trigger an error
415417 } ) ;
416418 await waitFor ( ( ) => {
417419 expect ( store . getState ( ) . status ) . to . equal ( 'SHARD_KEY_MISMATCH' ) ;
You can’t perform that action at this time.
0 commit comments