Skip to content

chore(backport): update unit tests after backport fo tendermint v0.35 - #245

Merged
shotonoff merged 51 commits into
v0.8-devfrom
fix-unit-test-fails
Feb 9, 2022
Merged

shotonoff merged 51 commits into
v0.8-devfrom
fix-unit-test-fails

Conversation

@shotonoff

@shotonoff shotonoff commented Jan 10, 2022 •

Copy link
Copy Markdown
Collaborator

Issue being fixed or feature implemented

After fixing compile errors, now the codebase is ready to fix the unit tests after backporting v0.35

What was done?

Fix unit tests for backport of v0.35

How Has This Been Tested?

Run unit tests

Breaking Changes

Checklist:

  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • I have added or updated relevant unit/integration/functional/e2e tests
  • I have made corresponding changes to the documentation

For repository code-owners and collaborators only

  • I have assigned this pull request to a milestone

@shotonoff shotonoff left a comment

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

done

Comment thread internal/blocksync/v0/reactor_test.go Resolved
Comment thread internal/blocksync/v2/reactor_test.go Resolved
Comment thread internal/blocksync/v2/reactor_test.go Resolved
Comment thread internal/consensus/byzantine_test.go Resolved
}

switch msg.Msg.(type) {
case *CommitMessage:

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

this is a critical part of tenderdash https://github.com/dashevo/tenderdash/blob/v0.7-dev/consensus/reactor.go#L340
apparently, it was missed during backporting. tests will fail if this piece of code is missing

Comment thread types/validator_set_test.go Resolved
Comment thread internal/blocksync/v0/reactor.go Resolved
Comment thread light/client_test.go
mockNode.AssertExpectations(t)
}

func TestClientRemovesWitnessIfItSendsUsIncorrectHeader(t *testing.T) {

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@QuantumExplorer removed this test case during working on tenderdash

Comment thread test/e2e/node/main.go Resolved
Comment thread types/block.go
// 96 for Block signature, 96 for State Signature
MaxCommitOverheadBytes int64 = 326
// 96 for Block signature, 96 for State Signature and -> 3 bytes overhead
MaxCommitOverheadBytes int64 = 329

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

@QuantumExplorer please confirm that it is a correct value

@lklimek lklimek added this to the v0.8.0 milestone Jan 25, 2022
@lklimek

lklimek commented Jan 25, 2022

Copy link
Copy Markdown
Collaborator

Squash-merge

@lklimek lklimek changed the title fix: unit tests of backport v0.35 test(backport): unit tests of backport v0.35 Jan 25, 2022
@lklimek lklimek changed the title test(backport): unit tests of backport v0.35 chore(backport): update unit tests after backport fo tendermint v0.35 Jan 25, 2022
Base automatically changed from fix-compile-errors-2 to v0.8-dev January 26, 2022 10:00
@github-actions

github-actions Bot commented Feb 7, 2022

Copy link
Copy Markdown

This pull request has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@github-actions github-actions Bot added the Stale label Feb 7, 2022
@shotonoff
shotonoff merged commit d4b8593 into v0.8-dev Feb 9, 2022
@shotonoff
shotonoff deleted the fix-unit-test-fails branch February 9, 2022 08:26
@shotonoff
shotonoff restored the fix-unit-test-fails branch February 16, 2022 14:29
@lklimek
lklimek deleted the fix-unit-test-fails branch February 1, 2024 13:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants