From 96c42262ab31a1a40957f23dad52e8a14e72aeb4 Mon Sep 17 00:00:00 2001 From: niftynei Date: Fri, 18 Dec 2020 10:19:54 -0600 Subject: [PATCH] df-tests: test_peerinfo --- tests/test_connection.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index a8f5ecc9e..127c8526a 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -2068,8 +2068,14 @@ def test_forget_channel(node_factory): def test_peerinfo(node_factory, bitcoind): l1, l2 = node_factory.line_graph(2, fundchannel=False, opts={'may_reconnect': True}) - lfeatures = expected_peer_features() - nfeatures = expected_node_features() + + if l1.config('experimental-dual-fund'): + lfeatures = expected_peer_features(extra=[223]) + nfeatures = expected_node_features(extra=[223]) + else: + lfeatures = expected_peer_features() + nfeatures = expected_node_features() + # Gossiping but no node announcement yet assert l1.rpc.getpeer(l2.info['id'])['connected'] assert len(l1.rpc.getpeer(l2.info['id'])['channels']) == 0