nixos/tests/rabbitmq: fail quickly if service fails to start
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user