Skip to content

consensus module refactor: enhance tests#10917

Merged
OneSizeFitsQuorum merged 2 commits intoapache:consensus_module_refactorfrom
HxpSerein:fix_test
Aug 21, 2023
Merged

consensus module refactor: enhance tests#10917
OneSizeFitsQuorum merged 2 commits intoapache:consensus_module_refactorfrom
HxpSerein:fix_test

Conversation

@HxpSerein
Copy link
Collaborator

Description

enhance tests

dataRegionId,
Collections.singletonList(new Peer(dataRegionId, 1, new TEndPoint("0.0.0.0", 6667))));
} catch (ConsensusException e) {
throw new RuntimeException(e);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

assert fail?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

}

@Test
public void addConsensusGroup() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put all tests in the alltest function, because frequent restarts will cause a can not bind socket error

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed.

@OneSizeFitsQuorum OneSizeFitsQuorum merged commit 7126965 into apache:consensus_module_refactor Aug 21, 2023
@HxpSerein HxpSerein deleted the fix_test branch August 28, 2023 03:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants