diff --git a/jdk/test/sun/net/www/http/KeepAliveCache/KeepAliveProperty.java b/jdk/test/sun/net/www/http/KeepAliveCache/KeepAliveProperty.java index afea35e48b7..e0ef3db957b 100644 --- a/jdk/test/sun/net/www/http/KeepAliveCache/KeepAliveProperty.java +++ b/jdk/test/sun/net/www/http/KeepAliveCache/KeepAliveProperty.java @@ -40,6 +40,7 @@ public class KeepAliveProperty { static volatile boolean pass = false; + static Logger logger = Logger.getLogger("sun.net.www.protocol.http.HttpURLConnection"); static class Server extends Thread { final ServerSocket server; @@ -138,7 +139,6 @@ static String fetch(URL url) throws Exception { public static void main(String args[]) throws Exception { // exercise the logging code - Logger logger = Logger.getLogger("sun.net.www.protocol.http.HttpURLConnection"); logger.setLevel(Level.FINEST); ConsoleHandler h = new ConsoleHandler(); h.setLevel(Level.FINEST); @@ -171,6 +171,7 @@ public static void main(String args[]) throws Exception { if (!expectClose) throw e; } + s.join(); if (!pass) throw new RuntimeException("Failed in server");