Fix hang in lettuce async test (#13609)

This commit is contained in:
Lauri Tulmin 2025-03-28 13:12:35 +02:00 committed by GitHub
parent 965b668425
commit 2e16a2e526
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -108,7 +108,7 @@ class LettuceAsyncClientTest extends AbstractLettuceClientTest {
new Utf8StringCodec(), new RedisURI(host, port, 3, TimeUnit.SECONDS));
StatefulRedisConnection<String, String> connection1 = connectionFuture.get();
cleanup.deferCleanup(connection1);
cleanup.deferCleanup(testConnectionClient::shutdown);
cleanup.deferCleanup(() -> shutdown(testConnectionClient));
assertThat(connection1).isNotNull();