Skip to content

Commit

Permalink
YARN-11531. Fix CheckStyle.
Browse files Browse the repository at this point in the history
  • Loading branch information
slfan1989 committed Jul 18, 2023
1 parent d2706ad commit 6570e17
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,18 +280,18 @@ protected RegisterApplicationMasterResponse registerApplicationMaster(
final ApplicationUserInfo ugi = getApplicationUserInfo(testAppId);

return ugi.getUser().doAs((PrivilegedExceptionAction<RegisterApplicationMasterResponse>) () -> {
getAMRMProxyService().initApp(ugi.getAppAttemptId(),
ugi.getUser().getUserName());
getAMRMProxyService().initApp(ugi.getAppAttemptId(), ugi.getUser().getUserName());

final RegisterApplicationMasterRequest req =
Records.newRecord(RegisterApplicationMasterRequest.class);
req.setHost(Integer.toString(testAppId));
req.setRpcPort(testAppId);
req.setTrackingUrl("");

RegisterApplicationMasterResponse response = getAMRMProxyService().registerApplicationMaster(req);
RegisterApplicationMasterResponse response =
getAMRMProxyService().registerApplicationMaster(req);
return response;
});
});
}

/**
Expand Down Expand Up @@ -397,7 +397,7 @@ protected <T> List<FinishApplicationMasterResponseInfo<T>> finishApplicationMast
testContext);
}
return response;
});
});

Assert.assertEquals("Number of responses received does not match with request",
testContexts.size(), responses.size());
Expand Down

0 comments on commit 6570e17

Please sign in to comment.