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());