mirror of
https://github.com/LemmyNet/lemmy.git
synced 2025-01-23 18:35:56 +00:00
delay
This commit is contained in:
parent
101901b8e0
commit
dfccf3efa5
1 changed files with 2 additions and 0 deletions
|
@ -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),
|
||||||
|
|
Loading…
Reference in a new issue