changeset 50395:03d263a61656

8200101: sun/security/krb5/auto/Renewal.java fails intermittently Reviewed-by: weijun Contributed-by: bhanu.prakash.gopularam@oracle.com
author vtewari
date Wed, 25 Apr 2018 12:44:50 +0530
parents d7fe9d3e7bf3
children b2e74972c7d4
files test/jdk/sun/security/krb5/auto/Renewal.java
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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);
         }
     }
 }