Skip to content

Commit baec139

Browse files
committed
MOD: Improve live test fixtures
1 parent 06c0991 commit baec139

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

tests/conftest.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,4 +297,6 @@ async def fixture_live_client(
297297
with mock_live_server.test_context():
298298
yield test_client
299299

300-
test_client.stop()
300+
if test_client.is_connected():
301+
test_client.stop()
302+
await test_client.wait_for_close()

0 commit comments

Comments
 (0)