]> Untitled Git - lemmy.git/blobdiff - api_tests/src/follow.spec.ts
Trying to add some long delays.
[lemmy.git] / api_tests / src / follow.spec.ts
index e238dc636e46fe82a8c62d4f6d29a5721982b1a3..e0389f8715b076d1a8fd13e796cc54f1dde65f3b 100644 (file)
@@ -7,6 +7,7 @@ import {
   checkFollowedCommunities,
   unfollowRemotes,
   delay,
+  longDelay,
 } from './shared';
 
 beforeAll(async () => {
@@ -24,10 +25,11 @@ test('Follow federated community', async () => {
   // Make sure the follow response went through
   expect(follow.community.local).toBe(false);
   expect(follow.community.name).toBe('main');
-  await delay();
+  await longDelay();
 
   // Check it from local
   let followCheck = await checkFollowedCommunities(alpha);
+  await delay();
   let remoteCommunityId = followCheck.communities.filter(
     c => c.community_local == false
   )[0].community_id;