Browse Source

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.
travis-debug
Christian Decker 5 years ago
committed by Rusty Russell
parent
commit
1e89937a0a
  1. 2
      contrib/pyln-testing/pyln/testing/utils.py

2
contrib/pyln-testing/pyln/testing/utils.py

@ -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…
Cancel
Save