From 849c495b7d4df1a1c2c538a97425525daa3048d3 Mon Sep 17 00:00:00 2001 From: Thomas Sileo Date: Sat, 26 May 2018 09:57:27 +0200 Subject: [PATCH] Fix tests --- tests/federation_test.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/federation_test.py b/tests/federation_test.py index f345dd0..b77f8d9 100644 --- a/tests/federation_test.py +++ b/tests/federation_test.py @@ -1,3 +1,4 @@ +import time import os import requests @@ -35,7 +36,11 @@ def test_federation(): resp = session1.get('http://localhost:5006/api/follow', params={'actor': 'http://instance2_web_1:5005'}) assert resp.status_code == 201 + + time.sleep(2) resp = requests.get('http://localhost:5007/followers', headers={'Accept': 'application/activity+json'}) resp.raise_for_status() + print(resp.json()) + assert resp.json()['first']['orderedItems'] == ['http://instance1_web_1:5005']