From ed364f593279f161acc1aecbd6eec4164713a710 Mon Sep 17 00:00:00 2001 From: Erik Arvstedt Date: Thu, 29 Jul 2021 20:26:35 +0200 Subject: [PATCH] tests: speed up stopping of clightning with clboss This speeds up the 'backups' test by 90 s. --- test/tests.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/tests.nix b/test/tests.nix index ef48631..b501ad3 100644 --- a/test/tests.nix +++ b/test/tests.nix @@ -52,6 +52,12 @@ let clboss.path = "${nbPkgs.clboss}/bin/clboss"; }; in map (plugin: pluginPkgs.${plugin}.path) enabled; + # Torified 'dig' subprocesses of clboss don't respond to SIGTERM and keep + # running for a long time when WAN is disabled, which prevents clightning units + # from stopping quickly. + # Set TimeoutStopSec for faster stopping. + systemd.services.clightning.serviceConfig.TimeoutStopSec = + mkIf config.services.clightning.plugins.clboss.enable "500ms"; tests.spark-wallet = cfg.spark-wallet.enable;