Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
drew2a committed Jun 21, 2021
1 parent a82ecba commit 8485775
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tribler-core/tribler_core/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,14 +42,13 @@ def _tribler_download_dir(tribler_root_dir):
@pytest.fixture(name="tribler_config")
def _tribler_config(tribler_state_dir, tribler_download_dir) -> TriblerConfig:
config = TriblerConfig(state_dir=tribler_state_dir)
config.download_defaults.put_path_as_relative('saveas', tribler_download_dir, tribler_state_dir)
config.download_defaults.put_path_as_relative('saveas', tribler_download_dir, state_dir=tribler_state_dir)
config.torrent_checking.enabled = False
config.ipv8.enabled = False
config.ipv8.walk_scaling_enabled = False
config.discovery_community.enabled = False
config.libtorrent.enabled = False
config.libtorrent.dht_readiness_timeout = 0
config.api.http_enabled = False
config.tunnel_community.enabled = False
config.popularity_community.enabled = False
config.dht.enabled = False
Expand All @@ -67,6 +66,7 @@ def get_free_port():
@pytest.fixture
def seed_config(tribler_config, tmpdir_factory):
seed_config = tribler_config.copy()
seed_config.set_state_dir(tmpdir_factory.mktemp("seeder"))
seed_config.libtorrent.enabled = True
seed_config.libtorrent.port = get_free_port()
seed_config.tunnel_community.socks5_listen_ports = [(get_free_port()) for _ in range(5)]
Expand Down

0 comments on commit 8485775

Please sign in to comment.