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

Added BucketListSizeSnapshots upgrade test #3991

Merged
merged 1 commit into from
Oct 30, 2023

Conversation

SirTyson
Copy link
Contributor

Description

Resolves #3798

Adds upgrade tests for BucketListSizeSnapshots upgrades.

Checklist

  • Reviewed the contributing document
  • Rebased on top of master (no merge commits)
  • Ran clang-format v8.0.0 (via make format or the Visual Studio extension)
  • Compiles
  • Ran all tests
  • If change impacts performance, include supporting evidence per the performance document

Copy link
Contributor

@marta-lokhova marta-lokhova left a comment

Choose a reason for hiding this comment

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

Couple of small suggestions, otherwise looks fine

src/herder/test/UpgradesTests.cpp Outdated Show resolved Hide resolved
src/herder/test/UpgradesTests.cpp Outdated Show resolved Hide resolved
}

// Verify average has been properly updated as well
REQUIRE(cfg.getAverageBucketListSize() == (sum / 40));
Copy link
Contributor

Choose a reason for hiding this comment

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

is there value in testing upgrades to 0 (should throw instead of UB), and to the same size as before (should no-op)?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea

@marta-lokhova
Copy link
Contributor

r+ 6a5ed0d

@latobarita latobarita merged commit b38afd9 into stellar:master Oct 30, 2023
10 checks passed
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.

More comprehensive state expiration unit tests
3 participants