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:
parent
2c86d8dfe4
commit
c8a1ca5b29
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue