diff options
author | Amber Brown <hawkowl@atleastfornow.net> | 2018-09-04 02:21:48 +1000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-04 02:21:48 +1000 |
commit | 77055dba92af80cdfdffc30fd3084ecd24902c2e (patch) | |
tree | 1d0a9c0afdecdeae970d98c77ba4c2ff8f4f39be /tests/storage/test_presence.py | |
parent | Merge pull request #3737 from matrix-org/erikj/remove_redundant_state_func (diff) | |
download | synapse-77055dba92af80cdfdffc30fd3084ecd24902c2e.tar.xz |
Fix tests on postgresql (#3740)
Diffstat (limited to 'tests/storage/test_presence.py')
-rw-r--r-- | tests/storage/test_presence.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/storage/test_presence.py b/tests/storage/test_presence.py index b5b58ff660..c7a63f39b9 100644 --- a/tests/storage/test_presence.py +++ b/tests/storage/test_presence.py @@ -16,19 +16,18 @@ from twisted.internet import defer -from synapse.storage.presence import PresenceStore from synapse.types import UserID from tests import unittest -from tests.utils import MockClock, setup_test_homeserver +from tests.utils import setup_test_homeserver class PresenceStoreTestCase(unittest.TestCase): @defer.inlineCallbacks def setUp(self): - hs = yield setup_test_homeserver(self.addCleanup, clock=MockClock()) + hs = yield setup_test_homeserver(self.addCleanup) - self.store = PresenceStore(None, hs) + self.store = hs.get_datastore() self.u_apple = UserID.from_string("@apple:test") self.u_banana = UserID.from_string("@banana:test") |