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

test(abci): Expand test coverage for WriteMessage and ReadMessage #1579

Open
wants to merge 2 commits into
base: v0.34.x-celestia
Choose a base branch
from

Conversation

tiendn
Copy link
Contributor

@tiendn tiendn commented Dec 28, 2024

Description

feat(abci): Expand test coverage for WriteMessage and ReadMessage

  • Add comprehensive test cases for ABCI message types in TestWriteReadMessage
  • Include more diverse scenarios for message serialization and deserialization
  • Improve error messaging in test assertions
  • Cover RequestCheckTx, ResponseCheckTx, RequestDeliverTx, ResponseDeliverTx,
    RequestBeginBlock, ResponseBeginBlock, RequestEndBlock, ResponseEndBlock,
    and RequestEcho, ResponseEcho message types

Closes // TODO:


PR checklist

  • Tests written/updated
  • Changelog entry added in .changelog (we use
    unclog to manage our changelog)
  • Updated relevant documentation (docs/ or spec/) and code comments

@tiendn tiendn requested a review from a team as a code owner December 28, 2024 15:48
@tiendn tiendn requested review from cmwaters and evan-forbes and removed request for a team December 28, 2024 15:48
@@ -65,19 +65,95 @@ func TestWriteReadMessage(t *testing.T) {
Height: 4,
ChainID: "test",
},
// TODO: add the rest
// Expanded test cases covering various ABCI message types
Copy link
Collaborator

Choose a reason for hiding this comment

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

what motivated this change? Did you see a GH issue that mentioned increasing test coverage here?

AFAIK these methods and types are consistent with upstream CometBFT v0.46.x so this change can instead target upstream and then we can pull it here.

Ref: https://github.com/celestiaorg/celestia-core?tab=readme-ov-file#contributing

@rootulp rootulp changed the title feat(abci): Expand test coverage for WriteMessage and ReadMessage test(abci): Expand test coverage for WriteMessage and ReadMessage Jan 2, 2025
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