From ea02b345a9ea7015868aae5331e636b3b1b09d42 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Tue, 19 Jul 2022 22:29:46 +0200 Subject: [PATCH] fix api test --- api_tests/src/follow.spec.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/api_tests/src/follow.spec.ts b/api_tests/src/follow.spec.ts index b5588572f..65b750122 100644 --- a/api_tests/src/follow.spec.ts +++ b/api_tests/src/follow.spec.ts @@ -26,13 +26,10 @@ test('Follow federated community', async () => { betaCommunity.community.id ); - // Wait for it to accept on the alpha side ( follows are async ) - await delay(); - // Make sure the follow response went through expect(follow.community_view.community.local).toBe(false); expect(follow.community_view.community.name).toBe('main'); - expect(follow.community_view.subscribed).toBe(SubscribedType.Pending); + expect(follow.community_view.subscribed).toBe(SubscribedType.Subscribed); // Check it from local let site = await getSite(alpha);