Skip to content

Commit 17de2d8

Browse files
committed
Use refreshBlob() instead of loadCachedBlob() in at least one integration test
1 parent 0b589bf commit 17de2d8

1 file changed

Lines changed: 8 additions & 1 deletion

File tree

webauthn-server-attestation/src/integrationTest/scala/com/yubico/fido/metadata/FidoMetadataServiceIntegrationTest.scala

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,14 @@ class FidoMetadataServiceIntegrationTest
4545
Try(
4646
FidoMetadataService
4747
.builder()
48-
.useBlob(TestCaches.cacheSynchronized(downloader.loadCachedBlob()))
48+
.useBlob(
49+
TestCaches.cacheSynchronized(
50+
// Since the integration tests cache downloads to file:
51+
// Use refreshBlob() here to always exercise the HTTP part of the downloader,
52+
// and loadCachedBlob() elsewhere to not cause unnecessary server load.
53+
downloader.refreshBlob()
54+
)
55+
)
4956
.build()
5057
)
5158

0 commit comments

Comments
 (0)