Skip to content

Commit 2e16a2e

Browse files
authored
Fix hang in lettuce async test (#13609)
1 parent 965b668 commit 2e16a2e

File tree

1 file changed

+1
-1
lines changed
  • instrumentation/lettuce/lettuce-5.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/lettuce/v5_0

1 file changed

+1
-1
lines changed

instrumentation/lettuce/lettuce-5.0/javaagent/src/test/java/io/opentelemetry/javaagent/instrumentation/lettuce/v5_0/LettuceAsyncClientTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ void testConnectUsingGetOnConnectionFuture() throws ExecutionException, Interrup
108108
new Utf8StringCodec(), new RedisURI(host, port, 3, TimeUnit.SECONDS));
109109
StatefulRedisConnection<String, String> connection1 = connectionFuture.get();
110110
cleanup.deferCleanup(connection1);
111-
cleanup.deferCleanup(testConnectionClient::shutdown);
111+
cleanup.deferCleanup(() -> shutdown(testConnectionClient));
112112

113113
assertThat(connection1).isNotNull();
114114

0 commit comments

Comments
 (0)