mirror of
https://github.com/ElementsProject/lightning.git
synced 2025-03-15 11:59:16 +01:00
pytest: test that listforwards gives as much outgoing information as possible.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
parent
4ae7b993de
commit
980f3bda1f
1 changed files with 5 additions and 0 deletions
|
@ -1383,6 +1383,7 @@ def test_forward_stats(node_factory, bitcoind):
|
|||
assert 'received_time' in stats['forwards'][2] and 'resolved_time' not in stats['forwards'][2]
|
||||
|
||||
|
||||
@pytest.mark.xfail(strict=True)
|
||||
@pytest.mark.developer("too slow without --dev-fast-gossip")
|
||||
@pytest.mark.slow_test
|
||||
def test_forward_local_failed_stats(node_factory, bitcoind, executor):
|
||||
|
@ -1608,6 +1609,10 @@ def test_forward_local_failed_stats(node_factory, bitcoind, executor):
|
|||
assert 'received_time' in stats['forwards'][3] and 'resolved_time' not in stats['forwards'][3]
|
||||
assert 'received_time' in stats['forwards'][3] and 'resolved_time' not in stats['forwards'][4]
|
||||
|
||||
# Correct in and out channels
|
||||
assert [s['in_channel'] for s in stats['forwards']] == [c12] * 5
|
||||
assert [s.get('out_channel') for s in stats['forwards']] == [c23, c24, c25, None, c24]
|
||||
|
||||
|
||||
@pytest.mark.developer("too slow without --dev-fast-gossip")
|
||||
@pytest.mark.slow_test
|
||||
|
|
Loading…
Add table
Reference in a new issue