Skip to content

Commit

Permalink
GEODE-717: Set the read timeout for jedis
Browse files Browse the repository at this point in the history
Use the GeodeAwaitility timeout for connect and read. This may
help resolve some intermittent read timeouts we see in CI.
  • Loading branch information
metatype committed Dec 31, 2019
1 parent b4c4c12 commit b7417c0
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
import org.apache.geode.distributed.ConfigurationProperties;
import org.apache.geode.internal.AvailablePortHelper;
import org.apache.geode.internal.inet.LocalHostUtil;
import org.apache.geode.test.awaitility.GeodeAwaitility;
import org.apache.geode.test.dunit.AsyncInvocation;
import org.apache.geode.test.dunit.DistributedTestUtils;
import org.apache.geode.test.dunit.Host;
Expand Down Expand Up @@ -56,7 +57,8 @@ public class RedisDistDUnitTest extends JUnit4DistributedTestCase {

private String localHost;

private static final int JEDIS_TIMEOUT = 20 * 1000;
private static final int JEDIS_TIMEOUT =
Math.toIntExact(GeodeAwaitility.getTimeout().getValueInMS());

private abstract class ClientTestBase extends SerializableCallable {

Expand Down

0 comments on commit b7417c0

Please sign in to comment.