YARN-7963. Updated MockServiceAM unit test to prevent test hang.
Contributed by Chandni Singh
This commit is contained in:
parent
6ce9f79cc9
commit
b4f1ba1413
@ -196,7 +196,15 @@ protected AMRMClientAsync<AMRMClient.ContainerRequest> createAMRMClient() {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public RegisterApplicationMasterResponse registerApplicationMaster(
|
public RegisterApplicationMasterResponse registerApplicationMaster(
|
||||||
String appHostName, int appHostPort, String appTrackingUrl) {
|
String appHostName, int appHostPort, String appTrackingUrl,
|
||||||
|
Map placementConstraintsMap) throws YarnException, IOException {
|
||||||
|
return this.registerApplicationMaster(appHostName, appHostPort,
|
||||||
|
appTrackingUrl);
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public RegisterApplicationMasterResponse registerApplicationMaster(
|
||||||
|
String appHostName, int appHostPort, String appTrackingUrl) {
|
||||||
RegisterApplicationMasterResponse response = mock(
|
RegisterApplicationMasterResponse response = mock(
|
||||||
RegisterApplicationMasterResponse.class);
|
RegisterApplicationMasterResponse.class);
|
||||||
when(response.getResourceTypes()).thenReturn(
|
when(response.getResourceTypes()).thenReturn(
|
||||||
|
Loading…
Reference in New Issue
Block a user