pytest: Explicitly state the max fee multiplier we assumed in tests

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker 2018-06-11 19:46:04 +02:00 committed by Rusty Russell
parent 0b427b4c3c
commit 583c1c50f8

View File

@ -4487,8 +4487,9 @@ class LightningDTests(BaseLightningDTests):
@unittest.skipIf(not DEVELOPER, "needs DEVELOPER=1") @unittest.skipIf(not DEVELOPER, "needs DEVELOPER=1")
def test_fee_limits(self): def test_fee_limits(self):
# FIXME: Test case where opening denied. # FIXME: Test case where opening denied.
l1, l2 = self.connect() l1, l2 = self.node_factory.get_nodes(2, opts={'dev-max-fee-multiplier': 5})
self.fund_channel(l1, l2, 10**6) l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
l1.fund_channel(l2, 10**6)
# L1 asks for stupid low fees # L1 asks for stupid low fees
l1.rpc.dev_setfees(15) l1.rpc.dev_setfees(15)
@ -4618,9 +4619,9 @@ class LightningDTests(BaseLightningDTests):
@unittest.skipIf(not DEVELOPER, "needs DEVELOPER=1") @unittest.skipIf(not DEVELOPER, "needs DEVELOPER=1")
def test_pay_disconnect(self): def test_pay_disconnect(self):
"""If the remote node has disconnected, we fail payment, but can try again when it reconnects""" """If the remote node has disconnected, we fail payment, but can try again when it reconnects"""
l1, l2 = self.connect() l1, l2 = self.node_factory.get_nodes(2, opts={'dev-max-fee-multiplier': 5})
l1.rpc.connect(l2.info['id'], 'localhost', l2.port)
chanid = self.fund_channel(l1, l2, 10**6) chanid = l1.fund_channel(l2, 10**6)
# Wait for route propagation. # Wait for route propagation.
self.wait_for_routes(l1, [chanid]) self.wait_for_routes(l1, [chanid])