1
0

Increase expected state events in tests for new room by one

This commit is contained in:
Andrew Morgan
2020-02-25 11:14:11 +00:00
parent e7ad777c84
commit 476932cdef

View File

@@ -21,8 +21,12 @@ from tests import unittest
# 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):
@@ -631,6 +635,7 @@ class StatsRoomTests(unittest.HomeserverTestCase):
self.assertEqual(u1stats["joined_rooms"], 1)
@unittest.DEBUG
def test_incomplete_stats(self):
"""
This tests that we track incomplete statistics.