From e1b1f47c5319b8fecde0e78689a833b97df856cb Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Fri, 29 Nov 2019 16:12:30 +0100 Subject: [PATCH] pytest: Avoid starting the btcproxy twice --- tests/test_misc.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tests/test_misc.py b/tests/test_misc.py index ca19ca3c4..1227543f1 100644 --- a/tests/test_misc.py +++ b/tests/test_misc.py @@ -1402,13 +1402,11 @@ def test_feerates(node_factory): def test_logging(node_factory): # Since we redirect, node.start() will fail: do manually. - l1 = node_factory.get_node(options={'log-file': 'logfile'}, may_fail=True, start=False) + l1 = node_factory.get_node(options={'log-file': 'logfile'}, start=False) logpath = os.path.join(l1.daemon.lightning_dir, TEST_NETWORK, 'logfile') logpath_moved = os.path.join(l1.daemon.lightning_dir, TEST_NETWORK, 'logfile_moved') + l1.daemon.start(wait_for_initialized=False) - l1.daemon.rpcproxy.start() - l1.daemon.opts['bitcoin-rpcport'] = l1.daemon.rpcproxy.rpcport - TailableProc.start(l1.daemon) wait_for(lambda: os.path.exists(logpath)) shutil.move(logpath, logpath_moved)