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:
parent
4f19e63a8f
commit
4ae6c65bc5
1 changed files with 7 additions and 0 deletions
|
|
@ -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"""
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue