1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-05 12:05:58 +01:00

ArtifactVectors: set now() as default reference time

This commit is contained in:
Heiko Schaefer 2023-07-16 19:03:59 +02:00
parent c6d5a5434a
commit 90a915cedf
No known key found for this signature in database
GPG key ID: 4A849A1904CCBD7D

View file

@ -38,7 +38,7 @@ interface ArtifactVectors {
fun getResourceName(): String
fun getNetworkAt(referenceTime: ReferenceTime, policy: Policy = PGPainless.getPolicy()): Network {
fun getNetworkAt(referenceTime: ReferenceTime = ReferenceTime.now(), policy: Policy = PGPainless.getPolicy()): Network {
val inputStream = keyRingInputStream()
val keyRing = PGPainless.readKeyRing().publicKeyRingCollection(inputStream)
val store = KeyRingCertificateStore(keyRing)