Make use of DateUtil.now() in test
This commit is contained in:
parent
2c86d8dfe4
commit
c8a1ca5b29
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue