]> Untitled Git - lemmy.git/blobdiff - api_tests/src/follow.spec.ts
Merge branch 'drone-io-dess' into move_views_to_diesel_drone
[lemmy.git] / api_tests / src / follow.spec.ts
index 8917efc02414b2835374412bf691365a044a6e8f..0749439c08e99b89cd755a5570957c6de66d738f 100644 (file)
@@ -6,8 +6,6 @@ import {
   followCommunity,
   checkFollowedCommunities,
   unfollowRemotes,
-  delay,
-  longDelay,
 } from './shared';
 
 beforeAll(async () => {
@@ -29,11 +27,9 @@ test('Follow federated community', async () => {
   // Make sure the follow response went through
   expect(follow.community_view.community.local).toBe(false);
   expect(follow.community_view.community.name).toBe('main');
-  await longDelay();
 
   // Check it from local
   let followCheck = await checkFollowedCommunities(alpha);
-  await delay();
   let remoteCommunityId = followCheck.communities.find(
     c => c.community.local == false
   ).community.id;
@@ -42,7 +38,6 @@ test('Follow federated community', async () => {
   // Test an unfollow
   let unfollow = await followCommunity(alpha, false, remoteCommunityId);
   expect(unfollow.community_view.community.local).toBe(false);
-  await delay();
 
   // Make sure you are unsubbed locally
   let unfollowCheck = await checkFollowedCommunities(alpha);