Skip to content

Commit

Permalink
feat: Change the default of seedPeerLoadLimit to 2000 and the default…
Browse files Browse the repository at this point in the history
… of peerLoadLimit to 200 (#377)

* feat: Change the default value of seedPeerLoadLimit to 2000 and the default value of peerLoadLimit to 200

Signed-off-by: zhaoxinxin <[email protected]>

* feat: Change the default value of seedPeerLoadLimit to 2000 and the default value of peerLoadLimit to 200

Signed-off-by: zhaoxinxin <[email protected]>

---------

Signed-off-by: zhaoxinxin <[email protected]>
  • Loading branch information
Liam-Zhao committed Jun 14, 2024
1 parent d849d65 commit 965dda8
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions cypress/e2e/clusters/create-cluster.cy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -347,6 +347,7 @@ describe('Create cluster', () => {
cy.get('#name').type('cluster-12');

// Should display seed peer load limit the validation error message.
cy.get('#seedPeerLoadLimit').invoke('val').should('eq', '2000');
cy.get('#seedPeerLoadLimit').clear();
cy.get('#seedPeerLoadLimit').type('50001');
cy.get('#seedPeerLoadLimit-helper-text')
Expand All @@ -361,6 +362,7 @@ describe('Create cluster', () => {
cy.get('#seedPeerLoadLimit-helper-text').should('not.exist');

// Should display peer load limit the validation error message.
cy.get('#peerLoadLimit').invoke('val').should('eq', '200');
cy.get('#peerLoadLimit').clear();
cy.get('#peerLoadLimit').type('2001');
cy.get('#peerLoadLimit-helper-text')
Expand All @@ -375,6 +377,7 @@ describe('Create cluster', () => {
cy.get('#peerLoadLimit-helper-text').should('not.exist');

// Should display candidate parent limit the validation error message.
cy.get('#candidateParentLimit').invoke('val').should('eq', '4');
cy.get('#candidateParentLimit').clear();
cy.get('#candidateParentLimit').type('21');
cy.get('#candidateParentLimit-helper-text')
Expand All @@ -387,6 +390,7 @@ describe('Create cluster', () => {
cy.get('#candidateParentLimit-helper-text').should('not.exist');

// Should display filter parent limit the validation error message.
cy.get('#filterParentLimit').invoke('val').should('eq', '40');
cy.get('#filterParentLimit').clear();

// Minimum validation range not reached.
Expand Down
4 changes: 2 additions & 2 deletions src/components/clusters/new.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ export default function NewCluster() {
type: 'number',
autoComplete: 'family-name',
placeholder: 'Please enter Seed Peer load limit',
defaultValue: 300,
defaultValue: 2000,
helperText: seedPeerLoadLimitError ? 'Fill in the number, the length is 0-50000.' : '',
error: seedPeerLoadLimitError,

Expand Down Expand Up @@ -371,7 +371,7 @@ export default function NewCluster() {
type: 'number',
autoComplete: 'family-name',
placeholder: 'Please enter Peer load limit',
defaultValue: 50,
defaultValue: 200,
helperText: peerLoadLimitError ? 'Fill in the number, the length is 0-2000.' : '',
error: peerLoadLimitError,

Expand Down

0 comments on commit 965dda8

Please sign in to comment.