mirror of
https://github.com/aljazceru/lightning.git
synced 2026-01-08 00:24:28 +01:00
pytest: fail tests if we get any LOG_BROKEN level messages, unless flagged.
And clean up some dev ones which actually happen (mainly by calling channel_fail_permanent which logs UNUSUAL, rather than channel_internal_error which logs BROKEN). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
This commit is contained in:
@@ -435,7 +435,7 @@ def test_htlc_accepted_hook_forward_restart(node_factory, executor):
|
||||
def test_warning_notification(node_factory):
|
||||
""" test 'warning' notifications
|
||||
"""
|
||||
l1 = node_factory.get_node(options={'plugin': 'tests/plugins/pretend_badlog.py'})
|
||||
l1 = node_factory.get_node(options={'plugin': 'tests/plugins/pretend_badlog.py'}, allow_broken_log=True)
|
||||
|
||||
# 1. test 'warn' level
|
||||
event = "Test warning notification(for unusual event)"
|
||||
|
||||
Reference in New Issue
Block a user