Skip to content

Commit

Permalink
tests/hardened: fix test for slower hardware
Browse files Browse the repository at this point in the history
  • Loading branch information
erikarvstedt committed Jan 15, 2024
1 parent 88c2a1c commit 4aa65ea
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions test/tests.nix
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,17 @@ let
scenarios.secureNode
../modules/presets/hardened-extended.nix
];

# Patch clightning to increase 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, ... }: {
Expand Down

0 comments on commit 4aa65ea

Please sign in to comment.