Skip to content

refactor node_test.go - #1952

Closed
faddat wants to merge 5 commits into
cometbft:mainfrom
faddat:faddat/refactor-node_test.go
Closed

faddat wants to merge 5 commits into
cometbft:mainfrom
faddat:faddat/refactor-node_test.go

Conversation

@faddat

@faddat faddat commented Jan 2, 2024 •

Copy link
Copy Markdown
Contributor
  • refactor TestNodeNewNodeGenesisHashMismatch
  • Refactor tests and add new test cases

This PR should fix several frequent test failures identified by running the tests 40x.

Like with the others, please check this PR harshly, but I am high confidence on this one.

Closes: #1926
Closes: #1927
Closes: #1928


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

@faddat
faddat requested a review from a team as a code owner January 2, 2024 20:15
@faddat
faddat requested a review from a team January 2, 2024 20:15

@melekes melekes left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Thanks @faddat ❤️ Unsure how TestNodeNewNodeGenesisHashMismatch and TestNodeDelayedStart are fixed by changing/adding comments though. Could you please explain?

Comment thread node/node_test.go Resolved
@faddat

faddat commented Jan 3, 2024

Copy link
Copy Markdown
Contributor Author

@melekes I think we should run the tests another 100x.

In cases where there's just comments, it is me getting a better grip on the code.

I'll just grind on all this some so that we can use CI as a source of truth (thats the goal of this exercise)

@faddat faddat mentioned this pull request Jan 3, 2024
@faddat

faddat commented Jan 4, 2024

Copy link
Copy Markdown
Contributor Author

closing in favor of #1954

@faddat faddat closed this Jan 4, 2024
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.

TestNodeNewNodeCustomReactors is flaky TestNodeNewNodeDeleteGenesisFileFromDB is flaky TestNodeNewNodeGenesisHashMismatch is flaky

2 participants