ayushtkn commented on a change in pull request #1838:
URL: https://github.com/apache/ozone/pull/1838#discussion_r564365175
##########
File path:
hadoop-ozone/ozone-manager/src/test/java/org/apache/hadoop/ozone/security/TestOzoneBlockTokenSecretManager.java
##########
@@ -329,7 +329,7 @@ private X509Certificate generateExpiredCert(String dn,
KeyPair pair, String algorithm) throws CertificateException,
IllegalStateException, IOException, OperatorCreationException {
Date from = new Date();
- Date to = new Date(from.getTime() + 100L);
+ Date to = from;
return generateTestCert(dn, pair, algorithm, from, to);
Review comment:
you can directly pass `from` instead of `to` in `generateTestCert`
something like - ```generateTestCert(dn, pair, algorithm, from, from);```
no need to have
``Date to = from;``
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]