Browse Source

pytest: reduce accuracy of valgrind if SLOW_MACHINE.

Reduces node_factory.line_graph(5) time on my laptop from 48s to 42s.

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
fixup-0.9.0
Rusty Russell 4 years ago
committed by Christian Decker
parent
commit
c85a433d9a
  1. 3
      contrib/pyln-testing/pyln/testing/utils.py

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

@ -601,6 +601,9 @@ class LightningNode(object):
'--error-exitcode=7',
'--log-file={}/valgrind-errors.%p'.format(self.daemon.lightning_dir)
]
# Reduce precision of errors, speeding startup and reducing memory greatly:
if SLOW_MACHINE:
self.daemon.cmd_prefix += ['--read-inline-info=no']
def connect(self, remote_node):
self.rpc.connect(remote_node.info['id'], '127.0.0.1', remote_node.daemon.port)

Loading…
Cancel
Save