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.
|
# This test runs rabbitmq and checks if rabbitmq is up and running.
|
||||||
|
|
||||||
{ pkgs, ... }:
|
{ lib, pkgs, ... }:
|
||||||
let
|
let
|
||||||
# in real life, you would keep this out of your repo and deploy it to a safe
|
# in real life, you would keep this out of your repo and deploy it to a safe
|
||||||
# location using safe means.
|
# 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
|
# Ensure there is sufficient extra disk space for rabbitmq to be happy
|
||||||
virtualisation.diskSize = 1024;
|
virtualisation.diskSize = 1024;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user