From fe1b285bba409ebf708572d97d186242364ba88b Mon Sep 17 00:00:00 2001 From: Rusty Russell Date: Tue, 8 Nov 2022 11:42:17 +1030 Subject: [PATCH] pytest: add test for generating non-standard length onion errors. Signed-off-by: Rusty Russell --- tests/test_plugin.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index f75b4fcc1..a8e02bbd5 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -1042,7 +1042,8 @@ def test_channel_state_change_history(node_factory, bitcoind): assert(history[3]['message'] == "Closing complete") -@pytest.mark.developer("without DEVELOPER=1, gossip v slow") +@pytest.mark.xfail(strict=True) +@pytest.mark.developer("Gossip slow, and we test --dev-onion-reply-length") def test_htlc_accepted_hook_fail(node_factory): """Send payments from l1 to l2, but l2 just declines everything. @@ -1053,7 +1054,8 @@ def test_htlc_accepted_hook_fail(node_factory): """ l1, l2, l3 = node_factory.line_graph(3, opts=[ {}, - {'plugin': os.path.join(os.getcwd(), 'tests/plugins/fail_htlcs.py')}, + {'dev-onion-reply-length': 1111, + 'plugin': os.path.join(os.getcwd(), 'tests/plugins/fail_htlcs.py')}, {} ], wait_for_announce=True)