Skip to content

Commit f816eef

Browse files
rustyrussellShahanaFarooqui
authored andcommitted
pytest: add test for bogus deprecation BROKEN log.
Signed-off-by: Rusty Russell <[email protected]>
1 parent 18312a4 commit f816eef

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

tests/test_plugin.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4427,3 +4427,11 @@ def test_sql_crash(node_factory, bitcoind):
44274427

44284428
assert 'updates' not in only_one(l1.rpc.listpeerchannels()['channels'])
44294429
l1.rpc.sql(f"SELECT * FROM peerchannels;")
4430+
4431+
4432+
@pytest.mark.xfail(strict=True)
4433+
def test_listchannels_broken_message(node_factory):
4434+
"""This gave a bogus BROKEN message with deprecated-apis enabled"""
4435+
l1 = node_factory.get_node(options={'allow-deprecated-apis': True})
4436+
4437+
l1.rpc.listchannels()

0 commit comments

Comments
 (0)