diff --git a/service/src/test/java/org/whispersystems/textsecuregcm/storage/MessagesCacheRemoveByGuidScriptTest.java b/service/src/test/java/org/whispersystems/textsecuregcm/storage/MessagesCacheRemoveByGuidScriptTest.java index 026019ef7..aca714e2f 100644 --- a/service/src/test/java/org/whispersystems/textsecuregcm/storage/MessagesCacheRemoveByGuidScriptTest.java +++ b/service/src/test/java/org/whispersystems/textsecuregcm/storage/MessagesCacheRemoveByGuidScriptTest.java @@ -38,7 +38,7 @@ class MessagesCacheRemoveByGuidScriptTest { .setServerGuid(serverGuid.toString()) .build(); - insertScript.executeAsync(destinationUuid, deviceId, envelope1); + insertScript.executeAsync(destinationUuid, deviceId, envelope1).toCompletableFuture().join(); final MessagesCacheRemoveByGuidScript removeByGuidScript = new MessagesCacheRemoveByGuidScript( REDIS_CLUSTER_EXTENSION.getRedisCluster(), mock(ScheduledExecutorService.class));