test/jdk/java/net/httpclient/TimeoutOrdering.java
changeset 48083 b1c1b4ef4be2
parent 47216 71c04702a3d5
child 49765 ee6f7a61f3a5
child 56082 1da51fab3032
equal deleted inserted replaced
48081:89829dd3cc54 48083:b1c1b4ef4be2
   133             executor.shutdownNow();
   133             executor.shutdownNow();
   134 
   134 
   135             if (error)
   135             if (error)
   136                 throw new RuntimeException("Failed. Check output");
   136                 throw new RuntimeException("Failed. Check output");
   137 
   137 
   138         } finally {
       
   139             ((ExecutorService) client.executor()).shutdownNow();
       
   140         }
   138         }
   141     }
   139     }
   142 
   140 
   143     static void checkReturnOrder(HttpRequest[] requests) throws InterruptedException {
   141     static void checkReturnOrder(HttpRequest[] requests) throws InterruptedException {
   144         // wait for exceptions and check order
   142         // wait for exceptions and check order