From 5774ffdeabf6115ce3ec374857f8b0e2fb2ce686 Mon Sep 17 00:00:00 2001 From: Jon Chambers Date: Fri, 5 Jun 2026 09:24:15 -0400 Subject: [PATCH] Wait for test message insertion to complete before attempting to read --- .../textsecuregcm/storage/MessagesCacheGetItemsScriptTest.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/service/src/test/java/org/whispersystems/textsecuregcm/storage/MessagesCacheGetItemsScriptTest.java b/service/src/test/java/org/whispersystems/textsecuregcm/storage/MessagesCacheGetItemsScriptTest.java index 2aebeaf7b..01bc2a3c4 100644 --- a/service/src/test/java/org/whispersystems/textsecuregcm/storage/MessagesCacheGetItemsScriptTest.java +++ b/service/src/test/java/org/whispersystems/textsecuregcm/storage/MessagesCacheGetItemsScriptTest.java @@ -44,7 +44,7 @@ class MessagesCacheGetItemsScriptTest { .setServerGuid(serverGuid) .build(); - insertScript.executeAsync(destinationUuid, deviceId, envelope1); + insertScript.executeAsync(destinationUuid, deviceId, envelope1).toCompletableFuture().join(); final MessagesCacheGetItemsScript getItemsScript = new MessagesCacheGetItemsScript( REDIS_CLUSTER_EXTENSION.getRedisCluster());