Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix gossip unit test #3422

Merged
merged 1 commit into from
Sep 26, 2024
Merged

Fix gossip unit test #3422

merged 1 commit into from
Sep 26, 2024

Conversation

joshua-kim
Copy link
Contributor

Why this should be merged

Fixed an assertion bug in the gossip unit tests

How this works

We're supposed to assert that we are not gossiping. Clearing the validator set fails because we're not using pointer.

How this was tested

UT

Signed-off-by: Joshua Kim <[email protected]>
@joshua-kim joshua-kim marked this pull request as ready for review September 26, 2024 20:23
@joshua-kim joshua-kim self-assigned this Sep 26, 2024
@StephenButtolph StephenButtolph added testing This primarily focuses on testing cleanup Code quality improvement labels Sep 26, 2024
@StephenButtolph StephenButtolph added this to the v1.11.12 milestone Sep 26, 2024
Copy link
Contributor

@yacovm yacovm left a comment

Choose a reason for hiding this comment

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

Alternatively:

	gossiper.Validators = testValidatorSet{}

@StephenButtolph StephenButtolph added this pull request to the merge queue Sep 26, 2024
Merged via the queue into master with commit f11da2f Sep 26, 2024
22 checks passed
@StephenButtolph StephenButtolph deleted the fix-gossip-ut branch September 26, 2024 20:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement testing This primarily focuses on testing
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

3 participants