lol

nixos/tests: Set DefaultTimeoutStartSec very high (#44916)

DefaultTimeoutStartSec is normally set to 90 seconds and works fine. But
when running NixOS tests on a very slow machine (like a VM without
nested virtualisation support) this default is to low and causes
systemd units to fail spuriously. One symptom of this issue are tests
at times failing with "timed out waiting for the VM to connect".

Since the VM connect timeout is 300 seconds I also set
DefaultTimeoutStartSec to this which is ridiculously high.

authored by

Brian Olsen and committed by
xeji
9540b1c5 b0d4c25c

+6 -2
+6 -2
nixos/modules/testing/test-instrumentation.nix
··· 102 MaxLevelConsole=debug 103 ''; 104 105 - # Don't clobber the console with duplicate systemd messages. 106 - systemd.extraConfig = "ShowStatus=no"; 107 108 boot.consoleLogLevel = 7; 109
··· 102 MaxLevelConsole=debug 103 ''; 104 105 + systemd.extraConfig = '' 106 + # Don't clobber the console with duplicate systemd messages. 107 + ShowStatus=no 108 + # Allow very slow start 109 + DefaultTimeoutStartSec=300 110 + ''; 111 112 boot.consoleLogLevel = 7; 113