Skip to content

Commit f3f36d1

Browse files
committed
fix: log cleanup failures in test fixture instead of silently swallowing
1 parent c68730c commit f3f36d1

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/rtc/coordinator/test_custom_events.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
"""
99

1010
import asyncio
11+
import logging
1112
import uuid
1213

1314
import pytest
@@ -19,6 +20,8 @@
1920
from getstream.video.rtc.connection_utils import ConnectionState
2021
from tests.conftest import skip_on_rate_limit
2122

23+
logger = logging.getLogger(__name__)
24+
2225

2326
@pytest_asyncio.fixture()
2427
async def test_user(async_client: AsyncStream):
@@ -30,7 +33,7 @@ async def test_user(async_client: AsyncStream):
3033
user_ids=[user_id], user="hard", conversations="hard", messages="hard"
3134
)
3235
except Exception:
33-
pass
36+
logger.warning("Failed to clean up test user %s", user_id, exc_info=True)
3437

3538

3639
@pytest.mark.asyncio

0 commit comments

Comments
 (0)