zhangshenghang commented on code in PR #10024:
URL: https://github.com/apache/seatunnel/pull/10024#discussion_r2492476742


##########
seatunnel-e2e/seatunnel-connector-v2-e2e/connector-redis-e2e/src/test/java/org/apache/seatunnel/e2e/connector/redis/RedisClusterIT.java:
##########
@@ -345,8 +345,13 @@ public void 
testRedisClusterCustomValueWithListType(TestContainer container)
                     
container.executeJob("/cluster-redis-to-redis-type-list.conf");
             Assertions.assertEquals(0, execResult.getExitCode());
 
-            long amount = jedisCluster.llen("cluster-list-value-check");
-            Assertions.assertEquals(100, amount);
+            List<String> items = 
jedisCluster.lrange("cluster-list-value-check", 0, -1);
+            Set<String> unique = new HashSet<>();
+            if (items != null) {
+                unique.addAll(items);
+            }
+
+            Assertions.assertEquals(100, unique.size());

Review Comment:
   if (items != null) {  Checking is unnecessary because it usually returns an 
empty list.



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

Reply via email to