YARN-8117. Fix TestRMWebServicesNodes test failure. Contributed by Bibin A Chundatt.
This commit is contained in:
parent
901e85238d
commit
a6590c1f1f
|
@ -740,7 +740,7 @@ public class TestRMWebServicesNodes extends JerseyTestBase {
|
||||||
|
|
||||||
public void verifyNodeInfo(JSONObject nodeInfo, RMNode nm)
|
public void verifyNodeInfo(JSONObject nodeInfo, RMNode nm)
|
||||||
throws JSONException, Exception {
|
throws JSONException, Exception {
|
||||||
assertEquals("incorrect number of elements", 19, nodeInfo.length());
|
assertEquals("incorrect number of elements", 20, nodeInfo.length());
|
||||||
|
|
||||||
JSONObject resourceInfo = nodeInfo.getJSONObject("resourceUtilization");
|
JSONObject resourceInfo = nodeInfo.getJSONObject("resourceUtilization");
|
||||||
verifyNodeInfoGeneric(nm, nodeInfo.getString("state"),
|
verifyNodeInfoGeneric(nm, nodeInfo.getString("state"),
|
||||||
|
|
Loading…
Reference in New Issue