MINOR: Fix DistributedHerderTest after adding reason to maybeLeaveGroup
Mocking of WorkerCoordinator was not precise after adding an argument (reason) to AbstractCoordinator#maybeLeaveGroup in
Unit test case for DistributedHerderTest is now precise with respect to the expected argument and succeeds
Reviewers: Boyang Chen Guozhang Wang
@@ -1442,7 +1442,7 @@ public class DistributedHerderTest {
// Reading to end of log times out
configBackingStore.refresh(EasyMock.anyLong(), EasyMock.anyObject(TimeUnit.class));
EasyMock.expectLastCall().andThrow(new TimeoutException());
- member.maybeLeaveGroup("test join leader catch up fails");
+ member.maybeLeaveGroup(EasyMock.eq("taking too long to read the log"));
EasyMock.expectLastCall();
PowerMock.expectPrivate(herder, "backoff", DistributedConfig.WORKER_UNSYNC_BACKOFF_MS_DEFAULT);
member.requestRejoin();
