tests: speed up stopping of clightning with clboss

This speeds up the 'backups' test by 90 s.
This commit is contained in:
Erik Arvstedt 2021-07-29 20:26:35 +02:00
parent 637a58d826
commit ed364f5932
No known key found for this signature in database
GPG Key ID: 33312B944DD97846

View File

@ -52,6 +52,12 @@ let
clboss.path = "${nbPkgs.clboss}/bin/clboss"; clboss.path = "${nbPkgs.clboss}/bin/clboss";
}; };
in map (plugin: pluginPkgs.${plugin}.path) enabled; 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; tests.spark-wallet = cfg.spark-wallet.enable;