From ca9696748a0ec17341dfa98c5ae5f823032c595b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Sat, 24 May 2025 01:28:30 +0200 Subject: [PATCH] Make the S3 test more robust Waiting for the minio unit is apparently not reliable enough, so let's also wait for the port. --- tests/nixos/s3-binary-cache-store.nix | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/nixos/s3-binary-cache-store.nix b/tests/nixos/s3-binary-cache-store.nix index fc55a27ae..a22e4c2c2 100644 --- a/tests/nixos/s3-binary-cache-store.nix +++ b/tests/nixos/s3-binary-cache-store.nix @@ -68,6 +68,7 @@ in # Create a binary cache. server.wait_for_unit("minio") server.wait_for_unit("network-addresses-eth1.service") + server.wait_for_open_port(9000) server.succeed("mc config host add minio http://localhost:9000 ${accessKey} ${secretKey} --api s3v4") server.succeed("mc mb minio/my-cache")