From 3f7e2f50dec2eecddb0480765a10ce62c7a7f90a Mon Sep 17 00:00:00 2001 From: inso <insomniak.fr@gmaiL.com> Date: Fri, 7 Apr 2017 00:18:18 +0200 Subject: [PATCH] Fix broken test --- tests/technical/test_documents_service.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tests/technical/test_documents_service.py b/tests/technical/test_documents_service.py index 1ea541d6..8fe7d755 100644 --- a/tests/technical/test_documents_service.py +++ b/tests/technical/test_documents_service.py @@ -11,7 +11,8 @@ async def test_send_more_than_40_sources(application_with_one_connection, fake_s new_blocks = fake_server_with_blockchain.forge.blocks[-60:] changed_tx, new_tx, new_ud = await application_with_one_connection.transactions_service.handle_new_blocks(new_blocks) - await application_with_one_connection.sources_service.refresh_sources_of_pubkey(bob.key.pubkey, new_tx, new_ud, None) + for conn in new_tx: + await application_with_one_connection.sources_service.refresh_sources_of_pubkey(bob.key.pubkey, new_tx[conn], new_ud[conn], None) amount_before_send = application_with_one_connection.sources_service.amount(bob.key.pubkey) bob_connection = application_with_one_connection.db.connections_repo.get_one(pubkey=bob.key.pubkey) -- GitLab