steve-sienk commented on a change in pull request #7278: URL: https://github.com/apache/geode/pull/7278#discussion_r794855975
########## File path: geode-for-redis/src/integrationTest/java/org/apache/geode/redis/internal/commands/executor/set/AbstractSScanIntegrationTest.java ########## @@ -14,37 +14,57 @@ */ package org.apache.geode.redis.internal.commands.executor.set; +import static org.apache.geode.redis.RedisCommandArgumentsTestHelper.assertAtLeastNArgs; import static org.apache.geode.redis.internal.RedisConstants.ERROR_CURSOR; import static org.apache.geode.redis.internal.RedisConstants.ERROR_NOT_INTEGER; import static org.apache.geode.redis.internal.RedisConstants.ERROR_SYNTAX; import static org.apache.geode.redis.internal.RedisConstants.ERROR_WRONG_TYPE; import static org.assertj.core.api.Assertions.assertThat; +import static org.assertj.core.api.Assertions.assertThatNoException; import static org.assertj.core.api.Assertions.assertThatThrownBy; +import java.math.BigInteger; import java.util.ArrayList; -import java.util.Arrays; +import java.util.HashSet; import java.util.List; +import java.util.Set; import org.junit.After; import org.junit.Before; import org.junit.Test; import redis.clients.jedis.HostAndPort; +import redis.clients.jedis.Jedis; import redis.clients.jedis.JedisCluster; import redis.clients.jedis.Protocol; import redis.clients.jedis.ScanParams; import redis.clients.jedis.ScanResult; +import org.apache.geode.redis.ConcurrentLoopingThreads; import org.apache.geode.redis.RedisIntegrationTest; +import org.apache.geode.redis.internal.data.KeyHashUtil; import org.apache.geode.test.awaitility.GeodeAwaitility; +import org.apache.geode.test.dunit.rules.RedisClusterStartupRule; public abstract class AbstractSScanIntegrationTest implements RedisIntegrationTest { protected JedisCluster jedis; - private static final int REDIS_CLIENT_TIMEOUT = - Math.toIntExact(GeodeAwaitility.getTimeout().toMillis()); + protected ScanResult<byte[]> result; Review comment: I didn't like the amount of boilerplate code it added and making lines unnecessary long. It was common across ~10 tests, and that made it worth it to me. Clearing it in the setup() method is kinda funky, I agree. Clearing it in the teardown method seems less bad. -- 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: notifications-unsubscr...@geode.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org