jinmeiliao commented on a change in pull request #6885:
URL: https://github.com/apache/geode/pull/6885#discussion_r715790123
##########
File path:
geode-junit/src/main/java/org/apache/geode/security/UpdatableUserAuthInitialize.java
##########
@@ -38,6 +40,16 @@ public Properties getCredentials(Properties securityProps,
DistributedMember ser
credentials.put("security-username", user.get());
credentials.put("security-password", user.get());
+ Long timeToWait = waitTime.get();
+ if (timeToWait < 0) {
+ throw new AuthenticationFailedException("Something wrong happened.");
+ } else if (timeToWait > 0) {
+ try {
+ Thread.sleep(timeToWait);
+ } catch (InterruptedException e) {
+ e.printStackTrace();
+ }
Review comment:
+1
--
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.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]