mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-02-22 14:42:40 +01:00
pytest: disable some v. slow tests when !DEVELOPER.
We've gone over 50 minutes with valgrind, and my measurements show these are the slowest. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
a7a9f1c9d3
commit
63103db3f3
2 changed files with 4 additions and 1 deletions
2
Makefile
2
Makefile
|
@ -52,7 +52,7 @@ endif
|
||||||
|
|
||||||
# Timeout shortly before the 600 second travis silence timeout
|
# Timeout shortly before the 600 second travis silence timeout
|
||||||
# (method=thread to support xdist)
|
# (method=thread to support xdist)
|
||||||
PYTEST_OPTS := -v --timeout=550 --timeout_method=thread -p no:logging
|
PYTEST_OPTS := -v --timeout=550 --timeout_method=thread -p no:logging --duration=0
|
||||||
|
|
||||||
# This is where we add new features as bitcoin adds them.
|
# This is where we add new features as bitcoin adds them.
|
||||||
FEATURES :=
|
FEATURES :=
|
||||||
|
|
|
@ -411,6 +411,7 @@ def test_openchannel_hook(node_factory, bitcoind):
|
||||||
l1.rpc.fundchannel(l2.info['id'], 100001)
|
l1.rpc.fundchannel(l2.info['id'], 100001)
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skipIf(not DEVELOPER, "without DEVELOPER=1, gossip v slow")
|
||||||
def test_htlc_accepted_hook_fail(node_factory):
|
def test_htlc_accepted_hook_fail(node_factory):
|
||||||
"""Send payments from l1 to l2, but l2 just declines everything.
|
"""Send payments from l1 to l2, but l2 just declines everything.
|
||||||
|
|
||||||
|
@ -447,6 +448,7 @@ def test_htlc_accepted_hook_fail(node_factory):
|
||||||
assert len(inv) == 1 and inv[0]['status'] == 'unpaid'
|
assert len(inv) == 1 and inv[0]['status'] == 'unpaid'
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skipIf(not DEVELOPER, "without DEVELOPER=1, gossip v slow")
|
||||||
def test_htlc_accepted_hook_resolve(node_factory):
|
def test_htlc_accepted_hook_resolve(node_factory):
|
||||||
"""l3 creates an invoice, l2 knows the preimage and will shortcircuit.
|
"""l3 creates an invoice, l2 knows the preimage and will shortcircuit.
|
||||||
"""
|
"""
|
||||||
|
@ -482,6 +484,7 @@ def test_htlc_accepted_hook_direct_restart(node_factory, executor):
|
||||||
f1.result()
|
f1.result()
|
||||||
|
|
||||||
|
|
||||||
|
@unittest.skipIf(not DEVELOPER, "without DEVELOPER=1, gossip v slow")
|
||||||
def test_htlc_accepted_hook_forward_restart(node_factory, executor):
|
def test_htlc_accepted_hook_forward_restart(node_factory, executor):
|
||||||
"""l2 restarts while it is pondering what to do with an HTLC.
|
"""l2 restarts while it is pondering what to do with an HTLC.
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Add table
Reference in a new issue