Fix to use new token format

This commit is contained in:
Erik Johnston 2024-07-16 15:58:31 +01:00
parent e8df0d78a2
commit f3030af575

View file

@ -50,7 +50,14 @@ from synapse.rest.client import (
sync, sync,
) )
from synapse.server import HomeServer 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 synapse.util import Clock
from tests import unittest from tests import unittest
@ -1448,7 +1455,7 @@ class SlidingSyncTestCase(unittest.HomeserverTestCase):
) )
future_position_token_serialized = self.get_success( 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 # Make the Sliding Sync request