mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-11-09 02:23:59 -05:00
Merge pull request #2309 from matrix-org/erikj/user_ip_repl
Fix up user_ip replication commands
This commit is contained in:
commit
ed9a7f5436
6 changed files with 18 additions and 17 deletions
|
|
@ -19,7 +19,6 @@ import synapse.api.errors
|
|||
import synapse.handlers.device
|
||||
|
||||
import synapse.storage
|
||||
from synapse import types
|
||||
from tests import unittest, utils
|
||||
|
||||
user1 = "@boris:aaa"
|
||||
|
|
@ -179,6 +178,6 @@ class DeviceTestCase(unittest.TestCase):
|
|||
|
||||
if ip is not None:
|
||||
yield self.store.insert_client_ip(
|
||||
types.UserID.from_string(user_id),
|
||||
user_id,
|
||||
access_token, ip, "user_agent", device_id)
|
||||
self.clock.advance_time(1000)
|
||||
|
|
|
|||
|
|
@ -15,9 +15,6 @@
|
|||
|
||||
from twisted.internet import defer
|
||||
|
||||
import synapse.server
|
||||
import synapse.storage
|
||||
import synapse.types
|
||||
import tests.unittest
|
||||
import tests.utils
|
||||
|
||||
|
|
@ -39,7 +36,7 @@ class ClientIpStoreTestCase(tests.unittest.TestCase):
|
|||
self.clock.now = 12345678
|
||||
user_id = "@user:id"
|
||||
yield self.store.insert_client_ip(
|
||||
synapse.types.UserID.from_string(user_id),
|
||||
user_id,
|
||||
"access_token", "ip", "user_agent", "device_id",
|
||||
)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue