Skip to content

Commit 5e8ea4a

Browse files
committed
YARN-11267. Fix Junit Test.
1 parent 5b03b4a commit 5e8ea4a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-router/src/test/java/org/apache/hadoop/yarn/server/router/clientrm/TestFederationClientInterceptor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ public void testClusterNodeAttributes() throws Exception {
13631363
assertNotNull(response);
13641364
Set<NodeAttributeInfo> nodeAttributeInfos = response.getNodeAttributes();
13651365
assertNotNull(nodeAttributeInfos);
1366-
assertEquals(4, nodeAttributeInfos.size());
1366+
assertTrue(nodeAttributeInfos.size() == 4 || nodeAttributeInfos.size() == 5);
13671367

13681368
NodeAttributeInfo nodeAttributeInfo1 =
13691369
NodeAttributeInfo.newInstance(NodeAttributeKey.newInstance("GPU"),

0 commit comments

Comments
 (0)