mirror of
https://github.com/signalapp/Signal-Server
synced 2026-04-21 02:08:03 +01:00
Always expose sequential fluxes to account crawlers
This commit is contained in:
committed by
Jon Chambers
parent
cca747a1f6
commit
5b0fcbe854
@@ -665,7 +665,7 @@ class AccountsTest {
|
||||
}
|
||||
|
||||
final List<Account> retrievedAccounts =
|
||||
accounts.getAll(2, Schedulers.parallel()).sequential().collectList().block();
|
||||
accounts.getAll(2, Schedulers.parallel()).collectList().block();
|
||||
|
||||
assertNotNull(retrievedAccounts);
|
||||
assertEquals(expectedAccounts.stream().map(Account::getUuid).collect(Collectors.toSet()),
|
||||
|
||||
@@ -124,8 +124,7 @@ class ProcessPushNotificationFeedbackCommandTest {
|
||||
}
|
||||
|
||||
processPushNotificationFeedbackCommand.crawlAccounts(
|
||||
Flux.just(accountWithActiveDevice, accountWithUninstalledDevice, accountWithAlreadyDisabledUninstalledDevice)
|
||||
.parallel());
|
||||
Flux.just(accountWithActiveDevice, accountWithUninstalledDevice, accountWithAlreadyDisabledUninstalledDevice));
|
||||
|
||||
if (isDryRun) {
|
||||
verify(accountsManager, never()).updateAsync(any(), any());
|
||||
|
||||
@@ -73,7 +73,7 @@ class RemoveExpiredAccountsCommandTest {
|
||||
when(expiredAccount.getLastSeen())
|
||||
.thenReturn(clock.instant().minus(RemoveExpiredAccountsCommand.MAX_IDLE_DURATION).minusMillis(1).toEpochMilli());
|
||||
|
||||
removeExpiredAccountsCommand.crawlAccounts(Flux.just(activeAccount, expiredAccount).parallel());
|
||||
removeExpiredAccountsCommand.crawlAccounts(Flux.just(activeAccount, expiredAccount));
|
||||
|
||||
if (isDryRun) {
|
||||
verify(accountsManager, never()).delete(any(), any());
|
||||
|
||||
Reference in New Issue
Block a user