Skip to content

Commit 9eeeca5

Browse files
author
corretto-github-robot
committed
Merge upstream-dev
2 parents 4dd2ebe + fc9f057 commit 9eeeca5

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

jdk/test/sun/net/www/http/KeepAliveCache/KeepAliveProperty.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
public class KeepAliveProperty {
4141

4242
static volatile boolean pass = false;
43+
static Logger logger = Logger.getLogger("sun.net.www.protocol.http.HttpURLConnection");
4344

4445
static class Server extends Thread {
4546
final ServerSocket server;
@@ -138,7 +139,6 @@ static String fetch(URL url) throws Exception {
138139

139140
public static void main(String args[]) throws Exception {
140141
// exercise the logging code
141-
Logger logger = Logger.getLogger("sun.net.www.protocol.http.HttpURLConnection");
142142
logger.setLevel(Level.FINEST);
143143
ConsoleHandler h = new ConsoleHandler();
144144
h.setLevel(Level.FINEST);
@@ -171,6 +171,7 @@ public static void main(String args[]) throws Exception {
171171
if (!expectClose)
172172
throw e;
173173
}
174+
s.join();
174175

175176
if (!pass)
176177
throw new RuntimeException("Failed in server");

0 commit comments

Comments
 (0)