From 44b487a1b034ce8fe45a14e062520cf22c93c9e6 Mon Sep 17 00:00:00 2001 From: David Baker Date: Tue, 1 Apr 2025 16:34:52 +0100 Subject: [PATCH] Change test as rooms now appear when read receipts sent --- tests/rest/client/sliding_sync/test_extension_receipts.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/rest/client/sliding_sync/test_extension_receipts.py b/tests/rest/client/sliding_sync/test_extension_receipts.py index 6e7700b533..4dc31fd00d 100644 --- a/tests/rest/client/sliding_sync/test_extension_receipts.py +++ b/tests/rest/client/sliding_sync/test_extension_receipts.py @@ -433,8 +433,11 @@ class SlidingSyncReceiptsExtensionTestCase(SlidingSyncBase): set(), exact=True, ) + # The room should be be in user1's sync because they sent a read receipt... + self.assertIn(room_id1, response_body["rooms"]) + # but there should be no timeline events # No events in the timeline since they were sent before the `from_token` - self.assertNotIn(room_id1, response_body["rooms"]) + self.assertNotIn("timeline", response_body["rooms"][room_id1]) # Check room3: #