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

Standardize consensus variable names in tests #2129

Merged
merged 1 commit into from
Oct 3, 2023

Conversation

StephenButtolph
Copy link
Contributor

Why this should be merged

Factors out some rote changes from #2102 and cleans up some testing functions.

How this works

Just variable name changes.

How this was tested

CI

@StephenButtolph StephenButtolph added consensus This involves consensus testing This primarily focuses on testing cleanup Code quality improvement labels Oct 3, 2023
@StephenButtolph StephenButtolph added this to the v1.10.12 milestone Oct 3, 2023
@@ -199,9 +199,9 @@ func (s *SenderTest) SendAccepted(ctx context.Context, validatorID ids.NodeID, r
// SendGet calls SendGetF if it was initialized. If it wasn't initialized and
// this function shouldn't be called and testing was initialized, then testing
// will fail.
func (s *SenderTest) SendGet(ctx context.Context, vdr ids.NodeID, requestID uint32, vtxID ids.ID) {
func (s *SenderTest) SendGet(ctx context.Context, vdr ids.NodeID, requestID uint32, containerID ids.ID) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Things in the common package should reference containers.

@@ -390,9 +390,9 @@ func TestBootstrapperUnknownByzantineResponse(t *testing.T) {
}

requestID := new(uint32)
sender.SendGetAncestorsF = func(_ context.Context, vdr ids.NodeID, reqID uint32, vtxID ids.ID) {
sender.SendGetAncestorsF = func(_ context.Context, vdr ids.NodeID, reqID uint32, blkID ids.ID) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Things in the snowman package should reference blocks

@StephenButtolph StephenButtolph self-assigned this Oct 3, 2023
@StephenButtolph StephenButtolph added this pull request to the merge queue Oct 3, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 3, 2023
@StephenButtolph StephenButtolph added this pull request to the merge queue Oct 3, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Oct 3, 2023
@StephenButtolph StephenButtolph added this pull request to the merge queue Oct 3, 2023
Merged via the queue into dev with commit 002e055 Oct 3, 2023
15 checks passed
@StephenButtolph StephenButtolph deleted the fix-vertex-naming branch October 3, 2023 19:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup Code quality improvement consensus This involves consensus testing This primarily focuses on testing
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

4 participants