1
1
Fork 0
mirror of https://github.com/NixOS/nix.git synced 2025-11-08 19:46:02 +01:00

test(tests/nixos/s3-binary-cache-store): verify credential caching in concurrent fetches

Add assertion to test_concurrent_fetches to verify that only one
credential provider is created even with 5 concurrent fetches.
This commit is contained in:
Bernardo Meurer Costa 2025-10-18 23:48:54 +00:00
parent 4f19e63a8f
commit 4ae6c65bc5
No known key found for this signature in database

View file

@ -418,6 +418,13 @@ in
f"Expected 5 FileTransfer instances for 5 concurrent fetches, got {transfers_created}"
)
if providers_created != 1:
print("Debug output:")
print(output)
raise Exception(
f"Expected 1 credential provider for concurrent fetches, got {providers_created}"
)
@setup_s3()
def test_compression_narinfo_gzip(bucket):
"""Test narinfo compression with gzip"""