Skip to content
This repository was archived by the owner on Apr 26, 2024. It is now read-only.

Commit fd9b836

Browse files
committed
Test number of queries executed in room create test
1 parent cf1cf26 commit fd9b836

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/rest/client/test_rooms.py

+2
Original file line numberDiff line numberDiff line change
@@ -708,6 +708,8 @@ def test_post_room_no_keys(self) -> None:
708708

709709
self.assertEqual(200, channel.code, channel.result)
710710
self.assertTrue("room_id" in channel.json_body)
711+
assert channel.resource_usage is not None
712+
self.assertEqual(33, channel.resource_usage.db_txn_count)
711713

712714
def test_post_room_visibility_key(self) -> None:
713715
# POST with visibility config key, expect new room id

0 commit comments

Comments
 (0)