This is an automated email from the ASF dual-hosted git repository.

xyuanlu pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/helix.git


The following commit(s) were added to refs/heads/master by this push:
     new 1ef505356 Fix flaky test get cluster assertion (#2753)
1ef505356 is described below

commit 1ef505356f1ba01c039a578048681dc375c2d224
Author: Grant Paláu Spencer <[email protected]>
AuthorDate: Mon Feb 5 10:19:35 2024 -0800

    Fix flaky test get cluster assertion (#2753)
    
    Fix flaky test testGetClusters
---
 .../test/java/org/apache/helix/rest/server/TestClusterAccessor.java    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/helix-rest/src/test/java/org/apache/helix/rest/server/TestClusterAccessor.java
 
b/helix-rest/src/test/java/org/apache/helix/rest/server/TestClusterAccessor.java
index a81799df2..d10ef9781 100644
--- 
a/helix-rest/src/test/java/org/apache/helix/rest/server/TestClusterAccessor.java
+++ 
b/helix-rest/src/test/java/org/apache/helix/rest/server/TestClusterAccessor.java
@@ -99,8 +99,7 @@ public class TestClusterAccessor extends AbstractTestClass {
 
     Set<String> clusters = OBJECT_MAPPER.readValue(clustersStr,
         OBJECT_MAPPER.getTypeFactory().constructCollectionType(Set.class, 
String.class));
-    Assert.assertEquals(clusters, _clusters,
-        "clusters from response: " + clusters + " vs clusters actually: " + 
_clusters);
+    Assert.assertEquals(clusters, _clusters);
 
     validateAuditLogSize(1);
     AuditLog auditLog = _auditLogger.getAuditLogs().get(0);

Reply via email to