diff options
author | Pascal Bach <pascal.bach@nextrem.ch> | 2024-01-31 22:22:02 +0100 |
---|---|---|
committer | Pascal Bach <pascal.bach@nextrem.ch> | 2024-03-03 11:20:44 +0100 |
commit | 7305821c58b9d7dbd493e7fb847a0480ffa5cb08 (patch) | |
tree | 4f08d1c6010992b8417d5046e6dc0e7e0d0bdfc6 /nixos/tests | |
parent | cca22fb9cebb583251da910f6ca65f53f6911e06 (diff) |
tests/minio: fix broken minio test
Since last update minio pre allocates 2GiB of memory, so the test VM needs more than that to not run out of memory. We also remove the time based tests as it makes the test non deterministic
Diffstat (limited to 'nixos/tests')
-rw-r--r-- | nixos/tests/minio.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/nixos/tests/minio.nix b/nixos/tests/minio.nix index ece4864f771c0..67eb0cd884400 100644 --- a/nixos/tests/minio.nix +++ b/nixos/tests/minio.nix @@ -43,17 +43,17 @@ import ./make-test-python.nix ({ pkgs, ... }: # Minio requires at least 1GiB of free disk space to run. virtualisation.diskSize = 4 * 1024; + + # Minio pre allocates 2GiB or memory, reserve some more + virtualisation.memorySize = 4096; }; }; testScript = '' - import time start_all() # simulate manually editing root credentials file machine.wait_for_unit("multi-user.target") - machine.copy_from_host("${credsPartial}", "${rootCredentialsFile}") - time.sleep(3) machine.copy_from_host("${credsFull}", "${rootCredentialsFile}") machine.wait_for_unit("minio.service") |