pytest: add test for bogus deprecation BROKEN log.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
Rusty Russell 2024-09-13 10:52:55 +09:30
parent c8660c85ba
commit 7e2ea3ed04

View File

@ -4415,3 +4415,11 @@ def test_sql_crash(node_factory, bitcoind):
assert 'updates' not in only_one(l1.rpc.listpeerchannels()['channels']) assert 'updates' not in only_one(l1.rpc.listpeerchannels()['channels'])
l1.rpc.sql(f"SELECT * FROM peerchannels;") l1.rpc.sql(f"SELECT * FROM peerchannels;")
@pytest.mark.xfail(strict=True)
def test_listchannels_broken_message(node_factory):
"""This gave a bogus BROKEN message with deprecated-apis enabled"""
l1 = node_factory.get_node(options={'allow-deprecated-apis': True})
l1.rpc.listchannels()