From 1e89937a0a7ec62edf599c8f18e30c174095bfd1 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Sun, 17 Nov 2019 12:44:49 +0100 Subject: [PATCH] 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. --- contrib/pyln-testing/pyln/testing/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/pyln-testing/pyln/testing/utils.py b/contrib/pyln-testing/pyln/testing/utils.py index 32ef1bf3e..e2a319064 100644 --- a/contrib/pyln-testing/pyln/testing/utils.py +++ b/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']