mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-01 08:06:47 +00:00
Fix a flaky test by waiting for the async insert to complete before attempting to remove the message
This commit is contained in:
1 parent
b93da1323b
commit
bb231e3b3f
1 file changed
+1
-1
+1
-1
@@ -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));
|
||||
|
||||
Reference in new issue
Block a user