Browse Source

pytest: increase timeout for test_payment_failed_persistence

This happened under travis.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
ppa-0.6.1
Rusty Russell 6 years ago
committed by Christian Decker
parent
commit
b1182702ae
  1. 4
      tests/test_lightningd.py

4
tests/test_lightningd.py

@ -4218,7 +4218,7 @@ class LightningDTests(BaseLightningDTests):
self.fund_channel(l1, l2, 100000) self.fund_channel(l1, l2, 100000)
# Expires almost immediately, so it will fail. # Expires almost immediately, so it will fail.
inv1 = l2.rpc.invoice(1000, 'inv1', 'inv1', 2) inv1 = l2.rpc.invoice(1000, 'inv1', 'inv1', 5)
# Fire off a pay request, it'll get interrupted by a restart # Fire off a pay request, it'll get interrupted by a restart
self.executor.submit(l1.rpc.pay, inv1['bolt11']) self.executor.submit(l1.rpc.pay, inv1['bolt11'])
@ -4233,7 +4233,7 @@ class LightningDTests(BaseLightningDTests):
del l1.daemon.opts['dev-disconnect'] del l1.daemon.opts['dev-disconnect']
# Make sure invoice has expired. # Make sure invoice has expired.
time.sleep(3) time.sleep(5 + 1)
# Should reconnect, and fail the payment # Should reconnect, and fail the payment
l1.start() l1.start()

Loading…
Cancel
Save