Fix a need-to-wait-for-async-operation issue in testCacheRemoveQueueScript

This commit is contained in:
Jon Chambers authored and Jon Chambers committed 2025-10-10 17:03:58 -04:00
1 parent a2f2fc93b0
commit 115b22cd5c
1 file changed
+1 -1
@@ -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());