don't insist on 2 uploaded messages in case Bob deletes one of them quickly

This commit is contained in:
Torsten Grote
2022-11-04 13:53:58 -03:00
parent 6680abf925
commit 5e1564de6c

View File

@@ -52,12 +52,8 @@ public class MailboxIntegrationTest extends AbstractMailboxIntegrationTest {
// send message and wait for it to arrive via mailbox // send message and wait for it to arrive via mailbox
broadcastMessage(c1); broadcastMessage(c1);
// wait until file with broadcast message arrived on mailbox // we don't check for two messages now, because 2 (Bob) might have
retryUntilSuccessOrTimeout(10_000, 500, () -> { // download the first message still in their 1st download cycle.
List<MailboxFile> files = api.getFiles(props2, props2.getInboxId());
return files.size() == 2;
});
LOG.info("Broadcast message uploaded");
// wait for message to arrive // wait for message to arrive
// this might require 2nd download cycle after Tor reachability period // this might require 2nd download cycle after Tor reachability period