From f4a377247184e60be8c7b49bd50e0bbecfc0f478 Mon Sep 17 00:00:00 2001 From: Mo Balaa Date: Thu, 4 Jan 2024 11:37:38 -0600 Subject: [PATCH] cleanup test --- tests/rest/client/test_rooms.py | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/tests/rest/client/test_rooms.py b/tests/rest/client/test_rooms.py index a24edd41772..81164023245 100644 --- a/tests/rest/client/test_rooms.py +++ b/tests/rest/client/test_rooms.py @@ -2159,19 +2159,12 @@ def test_room_message_filter_wildcard(self) -> None: # Send a first message in the room, which will be removed by the purge. self.helper.send(self.room_id, "message 1", type="f.message.1") self.helper.send(self.room_id, "message 1", type="f.message.2") - - first_event_id = self.helper.send(self.room_id, "message 1")["event_id"] - first_token = self.get_success( - store.get_topological_token_for_event(first_event_id) - ) - first_token_str = self.get_success(first_token.to_string(store)) - + self.helper.send(self.room_id, "not returned in filter") channel = self.make_request( "GET", - "/rooms/%s/messages?access_token=x&from=%s&dir=b&filter=%s" + "/rooms/%s/messages?access_token=x&dir=b&filter=%s" % ( self.room_id, - first_token_str, json.dumps({"types": ["f.message.*"]}), ), )