mirror of
https://github.com/signalapp/Signal-Server.git
synced 2026-12-02 05:56:53 +00:00
Don't panic if a queue exists, but is empty when repairing metadata.
This commit is contained in:
1 parent
899b54c082
commit
bb087caddc
2 files changed
+11
-8
No files matched your search
@@ -120,6 +120,12 @@ public class MessagesCacheTest extends AbstractRedisClusterTest {
|
||||
assertTrue(messagesCache.getMessagesToPersist(DESTINATION_UUID, DESTINATION_DEVICE_ID, 100).isEmpty());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testRepairEmptyQueueMetadata() {
|
||||
// We're happy as long as this doesn't throw an exception
|
||||
messagesCache.repairMetadata(DESTINATION_UUID, DESTINATION_DEVICE_ID);
|
||||
}
|
||||
|
||||
@Test
|
||||
@Parameters({"true", "false"})
|
||||
public void testRemoveById(final boolean sealedSender) {
|
||||
|
||||
Reference in new issue
Block a user