From: Dessalines Date: Sat, 12 Dec 2020 15:28:28 +0000 (-0500) Subject: Trying to fix post test again. X-Git-Url: http://these/git/%7B%60%24%7BwebArchiveUrl%7D/%22%7B%7D/%22https:/hacktivis.me/%7BdocsUrl%7D?a=commitdiff_plain;h=f6ba6d55903548b1b77dd66f473fed897237f963;p=lemmy.git Trying to fix post test again. --- diff --git a/api_tests/src/post.spec.ts b/api_tests/src/post.spec.ts index 9b2954b1..f876fa7a 100644 --- a/api_tests/src/post.spec.ts +++ b/api_tests/src/post.spec.ts @@ -20,6 +20,7 @@ import { getPost, unfollowRemotes, delay, + longDelay, searchForUser, banUserFromSite, searchPostLocal, @@ -35,7 +36,7 @@ beforeAll(async () => { await followBeta(gamma); await followBeta(delta); await followBeta(epsilon); - await delay(); + await longDelay(); }); afterAll(async () => { @@ -175,6 +176,7 @@ test('Sticky a post', async () => { let gammaPost = searchGamma.posts[0]; await delay(); let gammaTrySticky = await stickyPost(gamma, true, gammaPost); + await delay(); let searchBeta3 = await searchPost(beta, postRes.post); let betaPost3 = searchBeta3.posts[0]; expect(gammaTrySticky.post.stickied).toBe(true);