diff options
author | Calum Lind <calumlind@gmail.com> | 2018-05-19 21:27:48 +0100 |
---|---|---|
committer | Calum Lind <calumlind@gmail.com> | 2018-05-19 21:50:23 +0100 |
commit | ff85c334c7e6b527581b1112afb725b5a0ed430e (patch) | |
tree | ebddece9f82786801887758ba8d9b9622b9cbb19 /deluge/tests/test_torrent.py | |
parent | 0c574f33e1b33118f5485dbc88d5ab971dd4fbf0 (diff) | |
download | deluge-ff85c334c7e6b527581b1112afb725b5a0ed430e.tar.gz deluge-ff85c334c7e6b527581b1112afb725b5a0ed430e.tar.bz2 deluge-ff85c334c7e6b527581b1112afb725b5a0ed430e.zip |
[Tests] Fix 'Too many open files' by disabling LSD
Instances of libtorrent with Local Service Discovery enabled are leaving
many sockets fd open with every test run and will fail with 'Too many files
open' if ulimit is >=1024.
Diffstat (limited to 'deluge/tests/test_torrent.py')
-rw-r--r-- | deluge/tests/test_torrent.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/deluge/tests/test_torrent.py b/deluge/tests/test_torrent.py index 328cd9a39..ceb1d35e0 100644 --- a/deluge/tests/test_torrent.py +++ b/deluge/tests/test_torrent.py @@ -39,6 +39,7 @@ class TorrentTestCase(BaseTestCase): self.setup_config() self.rpcserver = RPCServer(listen=False) self.core = Core() + self.core.config.config['lsd'] = False self.session = lt.session() self.torrent = None return component.start() |