@@ -841,7 +841,7 @@ def call(self, method, payload=None, cmdprefix=None, filter=None):
841841
842842
843843class LightningNode (object ):
844- def __init__ (self , node_id , lightning_dir , bitcoind , executor , valgrind , may_fail = False ,
844+ def __init__ (self , node_id , lightning_dir , bitcoind , executor , may_fail = False ,
845845 may_reconnect = False ,
846846 broken_log = None ,
847847 allow_warning = False ,
@@ -900,7 +900,7 @@ def __init__(self, node_id, lightning_dir, bitcoind, executor, valgrind, may_fai
900900 self .daemon .opts ["dev-debugger" ] = dbgvar
901901 if os .getenv ("DEBUG_LIGHTNINGD" ):
902902 self .daemon .opts ["dev-debug-self" ] = None
903- if valgrind :
903+ if VALGRIND :
904904 self .daemon .env ["LIGHTNINGD_DEV_NO_BACKTRACE" ] = "1"
905905 self .daemon .opts ["dev-no-plugin-checksum" ] = None
906906 else :
@@ -926,7 +926,7 @@ def __init__(self, node_id, lightning_dir, bitcoind, executor, valgrind, may_fai
926926 dsn = db .get_dsn ()
927927 if dsn is not None :
928928 self .daemon .opts ['wallet' ] = dsn
929- if valgrind :
929+ if VALGRIND :
930930 trace_skip_pattern = '*python*,*bitcoin-cli*,*elements-cli*,*cln-grpc*,*clnrest*,*wss-proxy*,*cln-bip353*,*reckless'
931931 if not valgrind_plugins :
932932 trace_skip_pattern += ',*plugins*'
@@ -1653,10 +1653,6 @@ class NodeFactory(object):
16531653 """
16541654 def __init__ (self , request , testname , bitcoind , executor , directory ,
16551655 db_provider , node_cls , jsonschemas ):
1656- if request .node .get_closest_marker ("slow_test" ) and SLOW_MACHINE :
1657- self .valgrind = False
1658- else :
1659- self .valgrind = VALGRIND
16601656 self .testname = testname
16611657
16621658 # Set test name in environment for coverage file organization
@@ -1755,7 +1751,7 @@ def get_node(self, node_id=None, options=None, dbfile=None,
17551751 db = self .db_provider .get_db (os .path .join (lightning_dir , TEST_NETWORK ), self .testname , node_id )
17561752 db .provider = self .db_provider
17571753 node = self .node_cls (
1758- node_id , lightning_dir , self .bitcoind , self .executor , self . valgrind , db = db ,
1754+ node_id , lightning_dir , self .bitcoind , self .executor , db = db ,
17591755 port = port , grpc_port = grpc_port , options = options , may_fail = may_fail or expect_fail ,
17601756 jsonschemas = self .jsonschemas ,
17611757 ** kwargs
@@ -1872,7 +1868,7 @@ def killall(self, expected_successes):
18721868 # leak detection upsets VALGRIND by reading uninitialized mem,
18731869 # and valgrind adds extra fds.
18741870 # If it's dead, we'll catch it below.
1875- if not self . valgrind :
1871+ if not VALGRIND :
18761872 try :
18771873 # This also puts leaks in log.
18781874 leaks = self .nodes [i ].rpc .dev_memleak ()['leaks' ]
0 commit comments