< prev index next >

test/jdk/java/security/cert/CertPathValidator/OCSP/OCSPTimeout.java

Print this page
*** 186,11 ***
          rootOcsp.enableLog(debug);
          rootOcsp.setNextUpdateInterval(3600);
          rootOcsp.setDisableContentLength(true);
          rootOcsp.start();
  
!         // Wait 5 seconds for server ready
          boolean readyStatus = rootOcsp.awaitServerReady(60, TimeUnit.SECONDS);
          if (!readyStatus) {
              throw new RuntimeException("Server not ready");
          }
  
--- 186,11 ---
          rootOcsp.enableLog(debug);
          rootOcsp.setNextUpdateInterval(3600);
          rootOcsp.setDisableContentLength(true);
          rootOcsp.start();
  
!         // Wait 60 seconds for server ready
          boolean readyStatus = rootOcsp.awaitServerReady(60, TimeUnit.SECONDS);
          if (!readyStatus) {
              throw new RuntimeException("Server not ready");
          }
  
< prev index next >