diff --git a/tests/test_connection.py b/tests/test_connection.py index 4ea408c06e67..4fc965e4c502 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -1378,7 +1378,7 @@ def test_funding_external_wallet_corners(node_factory, bitcoind): try: l1.rpc.connect(l2.info['id'], 'localhost', l2.port) except RpcError as err: - assert "disconnected during connection" in err.error + assert "disconnected during connection" in err.error['message'] l1.daemon.wait_for_log('Responded to reestablish for long-closed channel') wait_for(lambda: len(l1.rpc.listpeers()['peers']) == 0)