From 980f3bda1fe4e464c471a8eb57c062ec93b34021 Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Sat, 9 Jul 2022 12:53:23 +0930 Subject: [PATCH] pytest: test that listforwards gives as much outgoing information as possible. Signed-off-by: Rusty Russell --- tests/test_pay.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_pay.py b/tests/test_pay.py index dbfd88454..5ee21e31f 100644 --- a/tests/test_pay.py +++ b/tests/test_pay.py @@ -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