JiaLiangC commented on code in PR #3859:
URL: https://github.com/apache/ambari/pull/3859#discussion_r1818362316
##########
ambari-server/src/test/java/org/apache/ambari/server/controller/internal/VersionDefinitionResourceProviderTest.java:
##########
@@ -280,7 +280,7 @@ public void testGetAvailable() throws Exception {
VersionDefinitionResourceProvider.SHOW_AVAILABLE).equals("true").toPredicate();
Set<Resource> results = versionProvider.getResources(getRequest,
predicate);
- Assert.assertEquals(3, results.size());
+ Assert.assertEquals(2, results.size());
Review Comment:
I tried, Assert.assertEquals(2, results.size());
No matter what number I adjust 2 to, results.size() is always one more than
the expected value, causing the test to fail. This test is quite difficult to
fix, so I'll leave it for later repair.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]