Skip to content

Commit 8d6bfed

Browse files
authored
Fix test failure on latest redisson (#13798)
1 parent 0c91939 commit 8d6bfed

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

instrumentation/redisson/redisson-common/testing/src/main/java/io/opentelemetry/javaagent/instrumentation/redisson/AbstractRedissonClientTest.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,13 @@ void setup() throws InvocationTargetException, IllegalAccessException {
9595
newAddress = "redis://" + address;
9696
}
9797
Config config = new Config();
98+
try {
99+
// script cache is enabled by default in 3.46.0 and that causes hashCommand and lockCommand
100+
// tests to fail
101+
Config.class.getMethod("setUseScriptCache", boolean.class).invoke(config, false);
102+
} catch (NoSuchMethodException ignored) {
103+
// ignored
104+
}
98105
SingleServerConfig singleServerConfig = config.useSingleServer();
99106
singleServerConfig.setAddress(newAddress);
100107
singleServerConfig.setTimeout(30_000);

0 commit comments

Comments
 (0)