mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-24 01:24:26 +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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user