From de793b73248223a5dbb37a9f54c77f5a925d8722 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 136193c11..1f79e8cf9 100644 --- a/tests/nixos/s3-binary-cache-store.nix +++ b/tests/nixos/s3-binary-cache-store.nix @@ -66,6 +66,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")