8200101: sun/security/krb5/auto/Renewal.java fails intermittently
Reviewed-by: weijun
Contributed-by: bhanu.prakash.gopularam@oracle.com
--- 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);
}
}
}