Skip to content

Commit 5184b24

Browse files
committed
update tests
1 parent 85576f4 commit 5184b24

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

packages/compass-global-writes/src/store/index.spec.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ const managedNamespace: ManagedNamespace = {
5151

5252
const 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');

0 commit comments

Comments
 (0)