From: Dessalines Date: Fri, 11 Dec 2020 20:24:28 +0000 (-0500) Subject: Trying to fix post test. X-Git-Url: http://these/git/%22https:/nerdica.net/%7B%24%7B%60data:application/static/%24%7B%60data:application/%7Bthis.imageSrc.unwrap%28%29%7D?a=commitdiff_plain;h=9e5824df85a165920d938b8917421e1fe1ee219a;p=lemmy.git Trying to fix post test. --- diff --git a/api_tests/src/post.spec.ts b/api_tests/src/post.spec.ts index cf60987c..6c7f7f4b 100644 --- a/api_tests/src/post.spec.ts +++ b/api_tests/src/post.spec.ts @@ -179,6 +179,7 @@ test('Sticky a post', async () => { // Make sure that gamma cannot sticky the post on beta let searchGamma = await searchPost(gamma, postRes.post); let gammaPost = searchGamma.posts[0]; + await delay(); let gammaTrySticky = await stickyPost(gamma, true, gammaPost); await delay(); let searchBeta3 = await searchPost(beta, postRes.post); @@ -287,6 +288,7 @@ test('Remove a post from admin and community on different instance', async () => test('Remove a post from admin and community on same instance', async () => { let search = await searchForBetaCommunity(alpha); + await longDelay(); let postRes = await createPost(alpha, search.communities[0].id); await longDelay();