mirror of
https://git.deluge-torrent.org/deluge
synced 2025-08-05 07:58:38 +00:00
[Tests] Fix tests failing when deluged fails to listen
Commit b32c5d824
changed the logged message in deluge/core/daemon_entry.py
when libtorrent fails to listen on the given port, without updating the
trigger expression in deluge/tests/common.py:start_core to match the new output.
Fix by updating the trigger match expressions to match the new log output
This commit is contained in:
parent
742c8a941a
commit
c1110e4ef3
1 changed files with 2 additions and 2 deletions
|
@ -268,8 +268,8 @@ except Exception:
|
||||||
default_core_cb['triggers'] = [
|
default_core_cb['triggers'] = [
|
||||||
{'expr': 'Finished loading ', 'value': lambda reader, data, data_all: reader},
|
{'expr': 'Finished loading ', 'value': lambda reader, data, data_all: reader},
|
||||||
{
|
{
|
||||||
'expr': 'Could not listen on localhost:%d' % (listen_port),
|
'expr': 'Cannot start deluged, listen port in use.',
|
||||||
'type': 'errback', # Error from libtorrent
|
'type': 'errback',
|
||||||
'value': lambda reader, data, data_all: CannotListenError(
|
'value': lambda reader, data, data_all: CannotListenError(
|
||||||
'localhost',
|
'localhost',
|
||||||
listen_port,
|
listen_port,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue