mirror of
https://github.com/fort-nix/nix-bitcoin.git
synced 2024-11-22 13:14:15 +03:00
tests/hardened: fix test for slower hardware
This commit is contained in:
parent
88c2a1ce55
commit
98b16a1f6c
@ -264,6 +264,17 @@ let
|
|||||||
scenarios.secureNode
|
scenarios.secureNode
|
||||||
../modules/presets/hardened-extended.nix
|
../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, ... }: {
|
netnsBase = { config, pkgs, ... }: {
|
||||||
|
Loading…
Reference in New Issue
Block a user