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

Commit

Permalink
Increase expected state events in tests for new room by one
Browse files Browse the repository at this point in the history
  • Loading branch information
anoadragon453 committed Feb 25, 2020
1 parent e7ad777 commit 476932c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion tests/handlers/test_stats.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,12 @@

# The expected number of state events in a fresh public room.
EXPT_NUM_STATE_EVTS_IN_FRESH_PUBLIC_ROOM = 5

# The expected number of state events in a fresh private room.
EXPT_NUM_STATE_EVTS_IN_FRESH_PRIVATE_ROOM = 6
#
# Note: we increase this by 1 on the dinsic branch as we send
# a "im.vector.room.access_rules" state event into new private rooms
EXPT_NUM_STATE_EVTS_IN_FRESH_PRIVATE_ROOM = 7


class StatsRoomTests(unittest.HomeserverTestCase):
Expand Down Expand Up @@ -631,6 +635,7 @@ def test_initial_background_update(self):

self.assertEqual(u1stats["joined_rooms"], 1)

@unittest.DEBUG
def test_incomplete_stats(self):
"""
This tests that we track incomplete statistics.
Expand Down

0 comments on commit 476932c

Please sign in to comment.