1
0
Fork 0
mirror of https://github.com/pgpainless/pgpainless.git synced 2024-11-23 04:42:06 +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) @ExtendWith(TestAllImplementations.class)
public void testChangingExpirationTimeWithKeyWithoutPrefAlgos() public void testChangingExpirationTimeWithKeyWithoutPrefAlgos()
throws IOException, PGPException { throws IOException, PGPException {
Date expirationDate = DateUtil.toSecondsPrecision(new Date()); Date expirationDate = DateUtil.now();
PGPSecretKeyRing secretKeys = PGPainless.readKeyRing().secretKeyRing(KEY); PGPSecretKeyRing secretKeys = PGPainless.readKeyRing().secretKeyRing(KEY);
SecretKeyRingProtector protector = new UnprotectedKeysProtector(); SecretKeyRingProtector protector = new UnprotectedKeysProtector();