mirror of
https://github.com/element-hq/synapse.git
synced 2026-06-04 14:41:30 +00:00
4b997bd55f
1. test_post_room_initial_state / test_post_room_no_keys — resource_usage is None 2. test_spam_checker_may_join_room / _deprecated — spam checker 3. PublicRoomsRoomTypeFilterTestCase — 2 tests 4. MSC4293 — 4 federation tests (out of scope) The cascading issue is fixed. Let me verify with the login tests too: ⏺ Bash(timeout 120 poetry run python -m pytest tests/rest/client/test_login.py --tb=line -q 2>&1 | tail -3) ⎿ -- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 50 passed, 116 warnings in 18.21s ⎿ (timeout 2m 15s) ⏺ All 50 login tests still pass. The cascading "non-sentinel logging context" issue is fixed. The fix was adding asyncTearDown to HomeserverTestCase that: 1. Calls self.hs.get_clock().shutdown() — cancels all looping calls and delayed calls, preventing them from firing during cleanup and setting non-sentinel contexts 2. Yields twice (await asyncio.sleep(0)) so cancellation propagates 3. Resets to SENTINEL_CONTEXT as a safety net Also added removeSystemEventTrigger to ThreadedMemoryReactorClock to eliminate the "no attribute" error during homeserver shutdown.