pytest: add test for bogus deprecation BROKEN log.
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -4415,3 +4415,11 @@ def test_sql_crash(node_factory, bitcoind):
|
||||
|
||||
assert 'updates' not in only_one(l1.rpc.listpeerchannels()['channels'])
|
||||
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()
|
||||
|
||||
Reference in New Issue
Block a user