From 600dc567fb1e6ae2bba7bfe328f6b76f0dfa9412 Mon Sep 17 00:00:00 2001 From: drew2a Date: Thu, 11 Nov 2021 11:40:13 +0100 Subject: [PATCH] Fix TestBandwidthAccountingCommunity --- .../components/bandwidth_accounting/tests/test_community.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/tribler-core/tribler_core/components/bandwidth_accounting/tests/test_community.py b/src/tribler-core/tribler_core/components/bandwidth_accounting/tests/test_community.py index 30f98914783..0c83c234d2a 100644 --- a/src/tribler-core/tribler_core/components/bandwidth_accounting/tests/test_community.py +++ b/src/tribler-core/tribler_core/components/bandwidth_accounting/tests/test_community.py @@ -26,9 +26,6 @@ def create_node(self): db = BandwidthDatabase(db_path=MEMORY_DB, my_pub_key=peer.public_key.key_to_bin()) ipv8 = MockIPv8(peer, BandwidthAccountingCommunity, database=db, settings=BandwidthAccountingSettings()) - community = ipv8.get_overlay(BandwidthAccountingCommunity) - # Dumb workaround for MockIPv8 not supporting key injection - community.database.my_pub_key = ipv8.my_peer.public_key.key_to_bin() return ipv8 async def test_single_transaction(self):