From 038d146ee6aa79ff33d03ab28635fd9ad2b56a19 Mon Sep 17 00:00:00 2001 From: "Adam C. Stephens" Date: Sat, 4 Oct 2025 09:37:12 -0400 Subject: [PATCH] nixos/tests/rabbitmq: fail quickly if service fails to start --- nixos/tests/rabbitmq.nix | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/nixos/tests/rabbitmq.nix b/nixos/tests/rabbitmq.nix index 94c7bdf49ba5..ab339b95d2ab 100644 --- a/nixos/tests/rabbitmq.nix +++ b/nixos/tests/rabbitmq.nix @@ -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; };