-
Notifications
You must be signed in to change notification settings - Fork 897
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
getByBlockNumber replaced by getByBlockHeader on tests #5259
getByBlockNumber replaced by getByBlockHeader on tests #5259
Conversation
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
# Conflicts: # ethereum/core/src/test/java/org/hyperledger/besu/ethereum/mainnet/ProtocolScheduleBuilderTest.java
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
@@ -27,6 +30,8 @@ | |||
|
|||
public class MergeProtocolScheduleTest { | |||
|
|||
final BlockDataGenerator blockDataGenerator = new BlockDataGenerator(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
redundant now?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed. Thanks!
Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
@@ -256,4 +257,8 @@ private BftConfigOptions createBftConfig( | |||
|
|||
return bftConfig; | |||
} | |||
|
|||
private BlockHeader blockHeader(final long number) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is used a lot in tests, might be nice to have this as a static method in the BlockHeaderTestFixture
) * Replace getByBlockNumber by getByBlockHeader Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Replace getByBlockNumber by getByBlockHeader Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Replace BlockDataGenerator by BlockHeaderTestFixture Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Replace BlockDataGenerator by BlockHeaderTestFixture Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Add final to method param Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Replace BlockDataGEnerator by BlockHeaderTestFixture Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Replace BlockDataGenerator by BlockHeaderTestFixture Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Remove BlockDataGenerator Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> --------- Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
) * Replace getByBlockNumber by getByBlockHeader Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Replace getByBlockNumber by getByBlockHeader Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Replace BlockDataGenerator by BlockHeaderTestFixture Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Replace BlockDataGenerator by BlockHeaderTestFixture Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Add final to method param Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Replace BlockDataGEnerator by BlockHeaderTestFixture Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Replace BlockDataGenerator by BlockHeaderTestFixture Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> * Remove BlockDataGenerator Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com> --------- Signed-off-by: Gabriel Fukushima <gabrielfukushima@gmail.com>
PR description
This PR removes the getByBlockNumber from tests and replace it's usage by getByBlockHeader.
Fixed Issue(s)
Fixes #5165