fix typo in logging (#17401)

This commit is contained in:
Arvid Norberg 2024-01-25 19:14:11 +01:00 committed by GitHub
parent 927ea40f53
commit 9a6de18394
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -58,7 +58,7 @@ class WalletNodeAPI:
else:
timestamp = None
if timestamp is not None and self.wallet_node.is_timestamp_in_sync(timestamp):
self.log.info("Connected to a a synced trusted peer, disconnecting from all untrusted nodes.")
self.log.info("Connected to a synced trusted peer, disconnecting from all untrusted nodes.")
# Stop peer discovery/connect tasks first
if self.wallet_node.wallet_peers is not None:
await self.wallet_node.wallet_peers.ensure_is_closed()

View File

@ -1360,7 +1360,7 @@ async def test_long_sync_untrusted_break(
await time_out_assert(600, wallet_height_at_least, True, wallet_node, len(default_400_blocks) - 1)
assert time_out_assert(10, synced_to_trusted)
assert untrusted_full_node_server.node_id not in wallet_node.synced_peers
assert "Connected to a a synced trusted peer, disconnecting from all untrusted nodes." in caplog.text
assert "Connected to a synced trusted peer, disconnecting from all untrusted nodes." in caplog.text
# Make sure the sync was interrupted
assert time_out_assert(30, check_sync_canceled)