1
0
Fork 0
mirror of https://github.com/NixOS/nix synced 2025-06-24 22:11:15 +02:00

Make the S3 test more robust

Waiting for the minio unit is apparently not reliable enough, so let's
also wait for the port.
This commit is contained in:
Eelco Dolstra 2025-05-24 01:28:30 +02:00
parent 81884c36a3
commit ca9696748a

View file

@ -68,6 +68,7 @@ in
# Create a binary cache. # Create a binary cache.
server.wait_for_unit("minio") server.wait_for_unit("minio")
server.wait_for_unit("network-addresses-eth1.service") 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 config host add minio http://localhost:9000 ${accessKey} ${secretKey} --api s3v4")
server.succeed("mc mb minio/my-cache") server.succeed("mc mb minio/my-cache")