federation-send-parallel
phiresky 2024-06-03 23:41:38 +02:00
parent 101901b8e0
commit dfccf3efa5
1 changed files with 2 additions and 0 deletions

View File

@ -11,6 +11,7 @@ import {
betaUrl, betaUrl,
registerUser, registerUser,
unfollows, unfollows,
delay,
} from "./shared"; } from "./shared";
beforeAll(setupLogins); beforeAll(setupLogins);
@ -46,6 +47,7 @@ test("Follow local community", async () => {
test("Follow federated community", async () => { test("Follow federated community", async () => {
// It takes about 1 second for the community aggregates to federate // It takes about 1 second for the community aggregates to federate
await delay(2000); // if this is the second test run, we don't have a way to wait for the correct number of subscribers
const betaCommunityInitial = ( const betaCommunityInitial = (
await waitUntil( await waitUntil(
() => resolveBetaCommunity(alpha), () => resolveBetaCommunity(alpha),