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

Commit ab28007

Browse files
committed
fix tests to reflect smaller number of DB calls
1 parent 3ece6b4 commit ab28007

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/rest/client/test_rooms.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -710,7 +710,7 @@ def test_post_room_no_keys(self) -> None:
710710
self.assertEqual(HTTPStatus.OK, channel.code, channel.result)
711711
self.assertTrue("room_id" in channel.json_body)
712712
assert channel.resource_usage is not None
713-
self.assertEqual(44, channel.resource_usage.db_txn_count)
713+
self.assertEqual(35, channel.resource_usage.db_txn_count)
714714

715715
def test_post_room_initial_state(self) -> None:
716716
# POST with initial_state config key, expect new room id
@@ -723,7 +723,7 @@ def test_post_room_initial_state(self) -> None:
723723
self.assertEqual(HTTPStatus.OK, channel.code, channel.result)
724724
self.assertTrue("room_id" in channel.json_body)
725725
assert channel.resource_usage is not None
726-
self.assertEqual(50, channel.resource_usage.db_txn_count)
726+
self.assertEqual(38, channel.resource_usage.db_txn_count)
727727

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

0 commit comments

Comments
 (0)