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

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
richvdh committed Feb 26, 2020
1 parent 6092914 commit 2dd2b1a
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions tests/replication/slave/storage/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@

from canonicaljson import encode_canonical_json

from synapse.api.room_versions import RoomVersions
from synapse.events import FrozenEvent, _EventInternalMetadata, make_event_from_dict
from synapse.events.snapshot import EventContext
from synapse.handlers.room import RoomEventSource
Expand Down Expand Up @@ -58,6 +59,15 @@ def setUp(self):
self.unpatches = [patch__eq__(_EventInternalMetadata), patch__eq__(FrozenEvent)]
return super(SlavedEventStoreTestCase, self).setUp()

def prepare(self, *args, **kwargs):
super().prepare(*args, **kwargs)

self.get_success(
self.master_store.store_room(
ROOM_ID, USER_ID, is_public=False, room_version=RoomVersions.V1,
)
)

def tearDown(self):
[unpatch() for unpatch in self.unpatches]

Expand Down

0 comments on commit 2dd2b1a

Please sign in to comment.