From cefc97bd646665e2e1116dd6bc1aeb3e145f5fa5 Mon Sep 17 00:00:00 2001 From: halcy Date: Sat, 24 Jun 2023 02:25:04 +0300 Subject: [PATCH] another attempt at making streaming tests okay --- tests/test_streaming.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/test_streaming.py b/tests/test_streaming.py index 7faff06..a5ad431 100644 --- a/tests/test_streaming.py +++ b/tests/test_streaming.py @@ -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)