From 45fe78e966b76a4e25d62a31634e1697aeaff138 Mon Sep 17 00:00:00 2001 From: drew2a Date: Thu, 7 Oct 2021 21:25:32 +0200 Subject: [PATCH] Add request_controller to tests --- .../components/tag/community/tests/test_tag_community.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/tribler-core/tribler_core/components/tag/community/tests/test_tag_community.py b/src/tribler-core/tribler_core/components/tag/community/tests/test_tag_community.py index c64978b0d2..a4a2f4c6ba 100644 --- a/src/tribler-core/tribler_core/components/tag/community/tests/test_tag_community.py +++ b/src/tribler-core/tribler_core/components/tag/community/tests/test_tag_community.py @@ -1,9 +1,10 @@ -from ipv8.test.base import TestBase -from ipv8.test.mocking.ipv8 import MockIPv8 from pony.orm import db_session +from ipv8.test.base import TestBase +from ipv8.test.mocking.ipv8 import MockIPv8 from tribler_core.components.tag.community.tag_community import TagCommunity from tribler_core.components.tag.community.tag_crypto import TagCrypto +from tribler_core.components.tag.community.tag_request_controller import TagRequestController from tribler_core.components.tag.community.tag_validator import TagValidator from tribler_core.components.tag.db.tag_db import Operation, TagDatabase @@ -20,7 +21,7 @@ async def tearDown(self): def create_node(self, *args, **kwargs): return MockIPv8("curve25519", TagCommunity, db=TagDatabase(), validator=TagValidator(), crypto=TagCrypto(), - request_interval=REQUEST_INTERVAL_FOR_RANDOM_TAGS) + request_controller=TagRequestController(), request_interval=REQUEST_INTERVAL_FOR_RANDOM_TAGS) @db_session async def fill_db(self):