diff options
author | Erik Johnston <erik@matrix.org> | 2024-07-16 15:58:31 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2024-07-17 12:14:28 +0100 |
commit | f3030af575d034c82b556eea2fba69e8ce833d14 (patch) | |
tree | 2ccea1590e81373704bb5dfd71d520c3f2b290be | |
parent | Don't create tokens manually in SSS tests (diff) | |
download | synapse-f3030af575d034c82b556eea2fba69e8ce833d14.tar.xz |
Fix to use new token format
-rw-r--r-- | tests/rest/client/test_sync.py | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/rest/client/test_sync.py b/tests/rest/client/test_sync.py index a0b25bc6d6..60f26e2beb 100644 --- a/tests/rest/client/test_sync.py +++ b/tests/rest/client/test_sync.py @@ -50,7 +50,14 @@ from synapse.rest.client import ( sync, ) from synapse.server import HomeServer -from synapse.types import JsonDict, RoomStreamToken, StreamKeyType, StreamToken, UserID +from synapse.types import ( + JsonDict, + RoomStreamToken, + SlidingSyncStreamToken, + StreamKeyType, + StreamToken, + UserID, +) from synapse.util import Clock from tests import unittest @@ -1448,7 +1455,7 @@ class SlidingSyncTestCase(unittest.HomeserverTestCase): ) future_position_token_serialized = self.get_success( - future_position_token.to_string(self.store) + SlidingSyncStreamToken(future_position_token, 0).to_string(self.store) ) # Make the Sliding Sync request |