mirror of
https://github.com/ElementsProject/lightning.git
synced 2024-11-19 18:11:28 +01:00
pytest: Skip mem-leak test when not running in developer mode
We were skipping it when running under valgrind, but not if not in developer, which is required to have access to `dev-*` methods.
This commit is contained in:
parent
de16d0f0b4
commit
1e89937a0a
@ -1075,7 +1075,7 @@ class NodeFactory(object):
|
||||
leaks = None
|
||||
# leak detection upsets VALGRIND by reading uninitialized mem.
|
||||
# If it's dead, we'll catch it below.
|
||||
if not VALGRIND:
|
||||
if not VALGRIND and DEVELOPER:
|
||||
try:
|
||||
# This also puts leaks in log.
|
||||
leaks = self.nodes[i].rpc.dev_memleak()['leaks']
|
||||
|
Loading…
Reference in New Issue
Block a user