mirror of
https://github.com/aljazceru/lightning.git
synced 2025-12-23 17:14:22 +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:
@@ -1044,7 +1044,7 @@ def test_logging(node_factory):
|
||||
@unittest.skipIf(VALGRIND,
|
||||
"Valgrind sometimes fails assert on injected SEGV")
|
||||
def test_crashlog(node_factory):
|
||||
l1 = node_factory.get_node(may_fail=True)
|
||||
l1 = node_factory.get_node(may_fail=True, allow_broken_log=True)
|
||||
|
||||
def has_crash_log(n):
|
||||
files = os.listdir(n.daemon.lightning_dir)
|
||||
|
||||
Reference in New Issue
Block a user