Skip to content

Commit

Permalink
cleanup test
Browse files Browse the repository at this point in the history
  • Loading branch information
thebalaa committed Jan 12, 2024
1 parent 87951eb commit f4a3772
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions tests/rest/client/test_rooms.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.*"]}),
),
)
Expand Down

0 comments on commit f4a3772

Please sign in to comment.