From a85d3dc220129055d0202874eb2a99f3193aaf98 Mon Sep 17 00:00:00 2001 From: Christian Decker Date: Tue, 6 Aug 2019 00:09:23 +0200 Subject: [PATCH] pytest: Make test_funding_cancel_race SLOW_MACHINE compatible This test is spawning 100 nodes concurrently, which is a lot even when not running with `valgrind`, especially when executing tests in parallel. Signed-off-by: Christian Decker --- tests/test_connection.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_connection.py b/tests/test_connection.py index be3ac450f..ac64a3046 100644 --- a/tests/test_connection.py +++ b/tests/test_connection.py @@ -2,7 +2,7 @@ from collections import namedtuple from fixtures import * # noqa: F401,F403 from flaky import flaky # noqa: F401 from lightning import RpcError -from utils import DEVELOPER, only_one, wait_for, sync_blockheight, VALGRIND, TIMEOUT +from utils import DEVELOPER, only_one, wait_for, sync_blockheight, VALGRIND, TIMEOUT, SLOW_MACHINE from bitcoin.core import CMutableTransaction, CMutableTxOut import binascii @@ -856,7 +856,7 @@ def test_funding_external_wallet_corners(node_factory, bitcoind): def test_funding_cancel_race(node_factory, bitcoind, executor): l1 = node_factory.get_node() - if VALGRIND: + if VALGRIND or SLOW_MACHINE: num = 5 else: num = 100