From 0ef69d1fab57f88ab257cd6ef22cf7271b3bfa88 Mon Sep 17 00:00:00 2001 From: Nick Cao Date: Sat, 2 Jul 2022 16:10:37 +0800 Subject: [PATCH] hydra_unstable: change 5s timeout for init to 30s in tests --- pkgs/development/tools/misc/hydra/unstable.nix | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pkgs/development/tools/misc/hydra/unstable.nix b/pkgs/development/tools/misc/hydra/unstable.nix index a188ebc6da9c..b6c4d6fb1c85 100644 --- a/pkgs/development/tools/misc/hydra/unstable.nix +++ b/pkgs/development/tools/misc/hydra/unstable.nix @@ -217,6 +217,12 @@ stdenv.mkDerivation rec { enableParallelBuilding = true; + postPatch = '' + # Change 5s timeout for init to 30s + substituteInPlace t/lib/HydraTestContext.pm \ + --replace 'expectOkay(5, ("hydra-init"));' 'expectOkay(30, ("hydra-init"));' + ''; + preCheck = '' patchShebangs . export LOGNAME=''${LOGNAME:-foo}