From 583c1c50f80466e87cd1c75da380ad4510e4debf Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Mon, 11 Jun 2018 19:46:04 +0200 Subject: [PATCH] pytest: Explicitly state the max fee multiplier we assumed in tests Signed-off-by: Christian Decker --- tests/test_lightningd.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/test_lightningd.py b/tests/test_lightningd.py index 5738e5f7c..8c917fdf5 100644 --- a/tests/test_lightningd.py +++ b/tests/test_lightningd.py @@ -4487,8 +4487,9 @@ class LightningDTests(BaseLightningDTests): @unittest.skipIf(not DEVELOPER, "needs DEVELOPER=1") def test_fee_limits(self): # FIXME: Test case where opening denied. - l1, l2 = self.connect() - self.fund_channel(l1, l2, 10**6) + l1, l2 = self.node_factory.get_nodes(2, opts={'dev-max-fee-multiplier': 5}) + l1.rpc.connect(l2.info['id'], 'localhost', l2.port) + l1.fund_channel(l2, 10**6) # L1 asks for stupid low fees l1.rpc.dev_setfees(15) @@ -4618,9 +4619,9 @@ class LightningDTests(BaseLightningDTests): @unittest.skipIf(not DEVELOPER, "needs DEVELOPER=1") def test_pay_disconnect(self): """If the remote node has disconnected, we fail payment, but can try again when it reconnects""" - l1, l2 = self.connect() - - chanid = self.fund_channel(l1, l2, 10**6) + l1, l2 = self.node_factory.get_nodes(2, opts={'dev-max-fee-multiplier': 5}) + l1.rpc.connect(l2.info['id'], 'localhost', l2.port) + chanid = l1.fund_channel(l2, 10**6) # Wait for route propagation. self.wait_for_routes(l1, [chanid])