From db65771f38b51c805ef721edcd5eb307fb1eaf54 Mon Sep 17 00:00:00 2001 From: niftynei Date: Mon, 14 Dec 2020 18:05:12 -0600 Subject: [PATCH] df-tests: test_plugin_feature_announce --- tests/test_plugin.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/tests/test_plugin.py b/tests/test_plugin.py index 18f68af73..871419627 100644 --- a/tests/test_plugin.py +++ b/tests/test_plugin.py @@ -1377,10 +1377,14 @@ def test_plugin_feature_announce(node_factory): wait_for_announce=True ) + extra = [] + if l1.config('experimental-dual-fund'): + extra.append(223) + # Check the featurebits we've set in the `init` message from # feature-test.py. assert l1.daemon.is_in_log(r'\[OUT\] 001000022200....{}' - .format(expected_peer_features(extra=[201]))) + .format(expected_peer_features(extra=[201] + extra))) # Check the invoice featurebit we set in feature-test.py inv = l1.rpc.invoice(123, 'lbl', 'desc')['bolt11'] @@ -1389,7 +1393,7 @@ def test_plugin_feature_announce(node_factory): # Check the featurebit set in the `node_announcement` node = l1.rpc.listnodes(l1.info['id'])['nodes'][0] - assert node['features'] == expected_node_features(extra=[203]) + assert node['features'] == expected_node_features(extra=[203] + extra) def test_hook_chaining(node_factory):