diff options
author | Erik Johnston <erik@matrix.org> | 2020-05-01 17:19:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 17:19:56 +0100 |
commit | 0e719f23981b8294df66ba7f38b8c7cc99fad228 (patch) | |
tree | 42d9aa97954cdbea46b0969bceefd88d2953a623 /tests/replication/tcp/streams/test_receipts.py | |
parent | Use `stream.current_token()` and remove `stream_positions()` (#7172) (diff) | |
download | synapse-0e719f23981b8294df66ba7f38b8c7cc99fad228.tar.xz |
Thread through instance name to replication client. (#7369)
For in memory streams when fetching updates on workers we need to query the source of the stream, which currently is hard coded to be master. This PR threads through the source instance we received via `POSITION` through to the update function in each stream, which can then be passed to the replication client for in memory streams.
Diffstat (limited to 'tests/replication/tcp/streams/test_receipts.py')
-rw-r--r-- | tests/replication/tcp/streams/test_receipts.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/replication/tcp/streams/test_receipts.py b/tests/replication/tcp/streams/test_receipts.py index df332ee679..5853314fd4 100644 --- a/tests/replication/tcp/streams/test_receipts.py +++ b/tests/replication/tcp/streams/test_receipts.py @@ -41,7 +41,7 @@ class ReceiptsStreamTestCase(BaseStreamTestCase): # there should be one RDATA command self.test_handler.on_rdata.assert_called_once() - stream_name, token, rdata_rows = self.test_handler.on_rdata.call_args[0] + stream_name, _, token, rdata_rows = self.test_handler.on_rdata.call_args[0] self.assertEqual(stream_name, "receipts") self.assertEqual(1, len(rdata_rows)) row = rdata_rows[0] # type: ReceiptsStream.ReceiptsStreamRow @@ -71,7 +71,7 @@ class ReceiptsStreamTestCase(BaseStreamTestCase): # We should now have caught up and get the missing data self.test_handler.on_rdata.assert_called_once() - stream_name, token, rdata_rows = self.test_handler.on_rdata.call_args[0] + stream_name, _, token, rdata_rows = self.test_handler.on_rdata.call_args[0] self.assertEqual(stream_name, "receipts") self.assertEqual(token, 3) self.assertEqual(1, len(rdata_rows)) |