try to workaround streaming test failures on CI

This commit is contained in:
halcy 2023-06-24 02:15:46 +03:00
parent 26c1133395
commit 3e37d0c345

View File

@ -10,14 +10,19 @@ import time
import select
# For monkeypatching so we can make vcrpy better
import vcr.stubs
streaming_is_patched = False
real_connections = []
close_connections = False
@pytest.fixture(scope='module')
def vcr(vcr):
vcr.match_on = ['path']
return vcr
def patch_streaming():
# For monkeypatching so we can make vcrpy better
import vcr.stubs
global streaming_is_patched
global close_connections
if streaming_is_patched is True: