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

Make use of DateUtil.now() in test

This commit is contained in:
Paul Schaub 2022-04-04 12:53:47 +02:00
parent 2c86d8dfe4
commit c8a1ca5b29
Signed by: vanitasvitae
GPG key ID: 62BEE9264BF17311

View file

@ -100,7 +100,7 @@ public class RevokeKeyWithoutPreferredAlgorithmsOnPrimaryKey {
@ExtendWith(TestAllImplementations.class)
public void testChangingExpirationTimeWithKeyWithoutPrefAlgos()
throws IOException, PGPException {
Date expirationDate = DateUtil.toSecondsPrecision(new Date());
Date expirationDate = DateUtil.now();
PGPSecretKeyRing secretKeys = PGPainless.readKeyRing().secretKeyRing(KEY);
SecretKeyRingProtector protector = new UnprotectedKeysProtector();