From: Dessalines Date: Fri, 11 Dec 2020 21:26:44 +0000 (-0500) Subject: Trying to fix post test again. X-Git-Url: http://these/git/%7B%60https:/readmes/static/%7B%60/feeds/%7BimageUploadUrl%7D?a=commitdiff_plain;h=5dff60adc52d6d527d186f9ccbaad1cb85e00664;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 6c7f7f4b..e45e290c 100644 --- a/api_tests/src/post.spec.ts +++ b/api_tests/src/post.spec.ts @@ -167,7 +167,7 @@ test('Sticky a post', async () => { // Unsticky a post let unstickiedPost = await stickyPost(alpha, false, postRes.post); expect(unstickiedPost.post.stickied).toBe(false); - await delay(); + await longDelay(); // Make sure that post is unstickied on beta let searchBeta2 = await searchPost(beta, postRes.post); @@ -213,7 +213,7 @@ test('Lock a post', async () => { // Unlock a post let unlockedPost = await lockPost(alpha, false, postRes.post); expect(unlockedPost.post.locked).toBe(false); - await delay(); + await longDelay(); // Make sure that post is unlocked on beta let searchBeta2 = await searchPost(beta, postRes.post); @@ -294,6 +294,7 @@ test('Remove a post from admin and community on same instance', async () => { // Get the id for beta let searchBeta = await searchPost(beta, postRes.post); + await longDelay(); let betaPost = searchBeta.posts[0]; await longDelay();