test/jdk/sun/security/krb5/auto/KdcPolicy.java
changeset 49276 3acb379b8672
parent 48668 2da4a52715d8
--- a/test/jdk/sun/security/krb5/auto/KdcPolicy.java	Wed Mar 21 16:55:34 2018 +0100
+++ b/test/jdk/sun/security/krb5/auto/KdcPolicy.java	Thu Mar 22 08:09:51 2018 +0800
@@ -100,9 +100,11 @@
         System.setProperty("java.security.krb5.conf", "alternative-krb5.conf");
 
         // Check default timeout is 30s. Use real KDC only, otherwise too
-        // slow to wait for timeout.
+        // slow to wait for timeout. Each request (without preauth and with
+        // preauth) might be retried 3 times, and could fail if one fails for
+        // all 3 times.
         writeConf(-1, -1, p3);
-        test("c30000c30000");
+        test("(c30000){2,6}|(c30000){3,6}-");
 
         // 1. Default policy is tryLast
         //Security.setProperty("krb5.kdc.bad.policy", "tryLast");