Skip to content

Commit 4ae6c65

Browse files
committed
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.
1 parent 4f19e63 commit 4ae6c65

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

tests/nixos/s3-binary-cache-store.nix

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,13 @@ in
418418
f"Expected 5 FileTransfer instances for 5 concurrent fetches, got {transfers_created}"
419419
)
420420
421+
if providers_created != 1:
422+
print("Debug output:")
423+
print(output)
424+
raise Exception(
425+
f"Expected 1 credential provider for concurrent fetches, got {providers_created}"
426+
)
427+
421428
@setup_s3()
422429
def test_compression_narinfo_gzip(bucket):
423430
"""Test narinfo compression with gzip"""

0 commit comments

Comments
 (0)