Fix test failure on latest redisson (#13798)
This commit is contained in:
parent
0c91939c23
commit
8d6bfed95b
|
|
@ -95,6 +95,13 @@ public abstract class AbstractRedissonClientTest {
|
||||||
newAddress = "redis://" + address;
|
newAddress = "redis://" + address;
|
||||||
}
|
}
|
||||||
Config config = new Config();
|
Config config = new Config();
|
||||||
|
try {
|
||||||
|
// script cache is enabled by default in 3.46.0 and that causes hashCommand and lockCommand
|
||||||
|
// tests to fail
|
||||||
|
Config.class.getMethod("setUseScriptCache", boolean.class).invoke(config, false);
|
||||||
|
} catch (NoSuchMethodException ignored) {
|
||||||
|
// ignored
|
||||||
|
}
|
||||||
SingleServerConfig singleServerConfig = config.useSingleServer();
|
SingleServerConfig singleServerConfig = config.useSingleServer();
|
||||||
singleServerConfig.setAddress(newAddress);
|
singleServerConfig.setAddress(newAddress);
|
||||||
singleServerConfig.setTimeout(30_000);
|
singleServerConfig.setTimeout(30_000);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue