KAFKA-15999: Migrate HeartbeatRequestManagerTest away from ConsumerTestBuilder#16200
KAFKA-15999: Migrate HeartbeatRequestManagerTest away from ConsumerTestBuilder#16200chia7712 merged 84 commits intoapache:trunkfrom
Conversation
Updated testFencedMemberStopHeartbeatUntilItReleasesAssignmentToRejoin() and testSuccessfulHeartbeatTiming() to get them to pass
Removed testHeartbeatMetrics(), only test I was unable to get to pass. Also found that this test already exists in HeartbeatMetricsManagerTest
|
@philipnee @lianetm @kirktrue this is ready for review. Let me know of any suggestions! |
|
Hey @brenden20 , thanks for the updates! Just a few minor comments left. |
|
@lianetm thank you for the review! I addressed the comments you left. Let me know if it is good |
lianetm
left a comment
There was a problem hiding this comment.
Thanks @brenden20, great improvement! LGTM.
|
Hey @chia7712, would you maybe have some time to take a look at this? Nice improvement @brenden20 did on the HeartbeatRequestManager test. Thanks! |
|
I will take a look today! |
chia7712
left a comment
There was a problem hiding this comment.
@brenden20 thanks for this great patch. I have only one small comment for you. PTAL
|
@chia7712 thank you for your feedback! I have addressed your comment by moving those object creations into a helper method. Let me know how it looks! |
| if (testBuilder != null) { | ||
| testBuilder.close(); | ||
| } | ||
| private void createHeartbeatStateandRequestManager() { |
There was a problem hiding this comment.
nit: createHeartbeatStateandRequestManager -> createHeartbeatStateAndRequestManager
There was a problem hiding this comment.
Whoops, missed that. Fixed now.
|
@chia7712 fixed that small issue with the name. Let me know if there is anything else! |
…tBuilder (apache#16200) In this PR I have completely migrated HeartbeatRequestManagerTest away from ConsumerTestBuilder. I have removed any instances of spy objects and used mocks wherever possible. 31/31 tests are passing. I also removed one test that existed in another test file. Reviewers: Lianet Magrans <lianetmr@gmail.com>, Chia-Ping Tsai <chia7712@gmail.com>
In this PR I have completely migrated HeartbeatRequestManagerTest away from ConsumerTestBuilder. I have removed any instances of spy objects and used mocks wherever possible. 31/31 tests are passing. I also removed one test that existed in another test file.