From 9e1b7165482f8122c8d1cce395d8f6181cd9d924 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Fri, 10 Oct 2025 16:48:59 -0400 Subject: [PATCH] Fix a need-to-wait-for-async-operation issue in `testCacheRemoveQueueScript` --- .../storage/MessagesCacheRemoveQueueScriptTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/test/java/org/whispersystems/textsecuregcm/storage/MessagesCacheRemoveQueueScriptTest.java b/service/src/test/java/org/whispersystems/textsecuregcm/storage/MessagesCacheRemoveQueueScriptTest.java index 5b2951b24..1757904b9 100644 --- a/service/src/test/java/org/whispersystems/textsecuregcm/storage/MessagesCacheRemoveQueueScriptTest.java +++ b/service/src/test/java/org/whispersystems/textsecuregcm/storage/MessagesCacheRemoveQueueScriptTest.java @@ -38,7 +38,7 @@ class MessagesCacheRemoveQueueScriptTest { .setServerGuid(UUID.randomUUID().toString()) .build(); - insertScript.executeAsync(destinationUuid, deviceId, envelope1); + insertScript.executeAsync(destinationUuid, deviceId, envelope1).toCompletableFuture().join(); final MessagesCacheRemoveQueueScript removeScript = new MessagesCacheRemoveQueueScript( REDIS_CLUSTER_EXTENSION.getRedisCluster());