We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent eae7d03 commit 1afe5f8Copy full SHA for 1afe5f8
1 file changed
tests/conftest.py
@@ -251,11 +251,17 @@ async def fixture_mock_live_server(
251
252
yield mock_live_server
253
254
- loop.run_in_executor(
255
- None,
256
- loop.stop,
257
- )
258
- thread.join()
+ asyncio.run_coroutine_threadsafe(
+ coro=mock_live_server.stop(),
+ loop=loop,
+ ).result()
+
259
+ loop.run_in_executor(
260
+ None,
261
+ loop.stop,
262
+ )
263
264
+ thread.join()
265
266
267
@pytest.fixture(name="historical_client")
0 commit comments