another attempt at making streaming tests okay

pull/350/head
halcy 2023-06-24 02:25:04 +03:00
rodzic 3e37d0c345
commit cefc97bd64
1 zmienionych plików z 3 dodań i 1 usunięć

Wyświetl plik

@ -380,7 +380,8 @@ def test_stream_user_direct(api, api2, api3):
t.join()
@pytest.mark.vcr(match_on=['path'])
def test_stream_user_local(api, api2):
def test_stream_user_local(api, api2, vcr):
vcr.match_on = ["path"]
patch_streaming()
# Make sure we are in the right state to not receive updates from api2
@ -394,6 +395,7 @@ def test_stream_user_local(api, api2):
posted = []
def do_activities():
vcr.match_on = ["path"]
time.sleep(5)
posted.append(api.status_post("it's cool guy"))
time.sleep(10)