nixos/tests/rabbitmq: fail quickly if service fails to start

This commit is contained in:
Adam C. Stephens
2025-10-04 09:37:12 -04:00
parent 5ca2738511
commit 038d146ee6

View File

@@ -1,6 +1,6 @@
# This test runs rabbitmq and checks if rabbitmq is up and running.
{ pkgs, ... }:
{ lib, pkgs, ... }:
let
# in real life, you would keep this out of your repo and deploy it to a safe
# location using safe means.
@@ -40,6 +40,8 @@ in
].
'';
};
systemd.services.rabbitmq.serviceConfig.Restart = lib.mkForce "no";
# Ensure there is sufficient extra disk space for rabbitmq to be happy
virtualisation.diskSize = 1024;
};