8200101: sun/security/krb5/auto/Renewal.java fails intermittently
authorvtewari
Wed, 25 Apr 2018 12:44:50 +0530
changeset 49884 03d263a61656
parent 49883 d7fe9d3e7bf3
child 49885 b2e74972c7d4
8200101: sun/security/krb5/auto/Renewal.java fails intermittently Reviewed-by: weijun Contributed-by: bhanu.prakash.gopularam@oracle.com
test/jdk/sun/security/krb5/auto/Renewal.java
--- a/test/jdk/sun/security/krb5/auto/Renewal.java	Wed Apr 25 12:39:05 2018 +0530
+++ b/test/jdk/sun/security/krb5/auto/Renewal.java	Wed Apr 25 12:44:50 2018 +0530
@@ -161,8 +161,10 @@
             return;
         }
         long change = (t.getTime() - System.currentTimeMillis()) / 1000;
-        if (change > duration + 20 || change < duration - 20) {
-            throw new Exception(t + " is not " + duration);
+        //accounting the delay factor in processing the instructions on host mc
+        if (change > duration + 40 || change < duration - 40) {
+            throw new Exception("Timestamp is " + t + ", actual difference "
+                    + change + " is not " + duration);
         }
     }
 }