Skip to content

fix: sbe unit tests#464

Merged
shotonoff merged 2 commits intosbe-e2e-fixesfrom
fix-update-last-height-validators-changed
Sep 26, 2022
Merged

fix: sbe unit tests#464
shotonoff merged 2 commits intosbe-e2e-fixesfrom
fix-update-last-height-validators-changed

Conversation

@shotonoff
Copy link
Collaborator

@shotonoff shotonoff commented Sep 26, 2022

Issue being fixed or feature implemented

Some unit-tests were broken by refactoring kvstore, this PR is fixed its

What was done?

Fix following tests:

  • TestHandshakeInitialCoreLockHeight
  • TestOneValidatorChangesSaveLoad
  • TestManyValidatorChangesSaveLoad

How Has This Been Tested?

Tests

Breaking Changes

N/A

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

Copy link
Collaborator

@lklimek lklimek left a comment

Choose a reason for hiding this comment

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

Please update PR description

@shotonoff shotonoff merged commit 981ba70 into sbe-e2e-fixes Sep 26, 2022
@shotonoff shotonoff deleted the fix-update-last-height-validators-changed branch September 26, 2022 15:02
lklimek added a commit that referenced this pull request Oct 4, 2022
…execution (#457)

* fix(abci/types): panic in ValidatorSetUpdate.MarshalJSON()

* refactor(kvstore): separate state from application

* feat(kvstore): allow setting of persistence store and interval

* feat(kvstore): app state can be marshaled to JSON (with DB content)

* refactor(kvstore): merge kvstore with e2e app

* chore: rewrite kvstore and e2e - "single" e2e test pass

* fix(kvstore,e2e): kvstore state import breaks state

* refactor(e2e): Move vote extension logic back to e2e app

As we add a tx to each block as part of vote extension logic,
we break other tests.

* refactor(kvstore): self-review

* test(consensus): fix invalid vote extension test

* chore(e2e): re-add e2e app Rollback() to fix test

* chore(kvstore): mv helpers.go helpers_test.go

* test(kvstore): add snapshots test

* refactor: remove abci commit call (#461)

* refactor: remove commit ABCI call

* fix(statesync): verify light block should use current height

* refactor(kvstore): remove persistentkvstore app, rename New* funcs and return error, refactor state store

* fix(kvstore): bytes.Buffer should be a pointer

* chore: apply code review feedback

* test(consensus): use t.Cleanup to rm test dir and cleanup state

* chore(abci/types): fix val update json marshal returns nil on nil input

* chore(kvstore): apply code review feedback

* chore(consensus): fix build issues after merge

* fix(state): correctly save validators at genesis

* test(consensus): fix TestBlockReplayerReplay

* Revert "fix(state): correctly save validators at genesis"

This reverts commit a8cd027.

* fix(consensus): validators from InitChain should replace genesis validators

* fix(consensus): quorum type removed when processing initChain validators

* test(rpc/client): minor test improvements

* fix(state): last height validator changed handled incorrectly in initChain

* chore(state): remove unused GetProcessProposalResponse

* fix: some fixes after refactoring kvstore (#463)

* fix: TestKVStoreKV, TestClientServer in kvstore_test.go
* chore: remove Application.chainLockUpdate as unused functionality
* chore: moved back chain-lock update to kvstore
* chore: fix lint issues
* fix: abci-client tests

* fix: sbe unit tests (#464)

* fix: replace state.LastCoreChainLockedBlockHeight with InitialCoreHeight
* refactor: leave one save-validators-info

* chore: minor code improvements based on feedback

Co-authored-by: Dmitrii Golubev <shotonoff@gmail.com>
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