mirror of
https://github.com/element-hq/synapse.git
synced 2026-06-04 14:41:30 +00:00
f19b419c91
state deltas and populates room_stats_state and room_stats_current. With our 1ms fake time advancement, the background process may not have completed by the time create_room_as returns. The rooms are in the rooms table (with is_public=True), but room_stats_state and room_stats_current aren't populated yet, so the INNER JOIN in the public rooms query finds nothing. The fix: add event loop yields after room creation in the test's prepare method to let the stats handler process the events. Similar to the profile change fix: fixes PublicRoomsRoomTypeFilterTestCase