mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-08-17 19:00:28 +03:00
Merge fort-nix/nix-bitcoin#674: tests/hardened: fix test for slower hardware
98b16a1f6c
tests/hardened: fix test for slower hardware (Erik Arvstedt) Pull request description: ACKs for top commit: jonasnick: utACK98b16a1f6c
Tree-SHA512: 04d51dcf1aa01f861dff0da3bd2bb65bba0046d53ab6849f930455c579be7a80d6444f9f45e2d17bf6dd946ad7c6b5a2e0e2b65ed64a9892d20dfd83e6c503fb
This commit is contained in:
commit
b34bf78574
@ -264,6 +264,17 @@ let
|
||||
scenarios.secureNode
|
||||
../modules/presets/hardened-extended.nix
|
||||
];
|
||||
|
||||
# Patch clightning to increase the plugin init timeout.
|
||||
# Otherwise this test can fail on slower hardware.
|
||||
nix-bitcoin.pkgOverlays = super: self: {
|
||||
clightning = super.clightning.overrideAttrs (old: {
|
||||
postPatch = old.postPatch + ''
|
||||
substituteInPlace lightningd/plugin.c \
|
||||
--replace "#define PLUGIN_MANIFEST_TIMEOUT 60" "#define PLUGIN_MANIFEST_TIMEOUT 200"
|
||||
'';
|
||||
});
|
||||
};
|
||||
};
|
||||
|
||||
netnsBase = { config, pkgs, ... }: {
|
||||
|
Loading…
Reference in New Issue
Block a user