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:
Christian Decker
2019-11-17 12:44:49 +01:00
committed by Rusty Russell
parent de16d0f0b4
commit 1e89937a0a

View File

@@ -1075,7 +1075,7 @@ class NodeFactory(object):
leaks = None leaks = None
# leak detection upsets VALGRIND by reading uninitialized mem. # leak detection upsets VALGRIND by reading uninitialized mem.
# If it's dead, we'll catch it below. # If it's dead, we'll catch it below.
if not VALGRIND: if not VALGRIND and DEVELOPER:
try: try:
# This also puts leaks in log. # This also puts leaks in log.
leaks = self.nodes[i].rpc.dev_memleak()['leaks'] leaks = self.nodes[i].rpc.dev_memleak()['leaks']