Skip to content

Commit

Permalink
Add request_controller to tests
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Oct 7, 2021
1 parent af851d9 commit 45fe78e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -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

Expand All @@ -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):
Expand Down

0 comments on commit 45fe78e

Please sign in to comment.