liuml07 commented on a change in pull request #2794:
URL: https://github.com/apache/hadoop/pull/2794#discussion_r599297317



##########
File path: 
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/balancer/TestBalancer.java
##########
@@ -2309,8 +2310,11 @@ public void testBalancerWithSortTopNodes() throws 
Exception {
     // Hence, overall total blocks moved by HDFS balancer would be either of 
these 2 options:
     // a) 2 blocks of total size (100B + 100B)
     // b) 3 blocks of total size (50B + 100B + 100B)
-    assertTrue(balancerResult.getBytesAlreadyMoved() == 200
-        || balancerResult.getBytesAlreadyMoved() == 250);
+    assertTrue(

Review comment:
       might be helpful if we add `balancerRestult` into the error message as 
the assertion is getting longer; so it will be easier to reason about in case 
of test failure. At least it's easier than checking logs in console.




-- 
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.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to