6782783: regtest HttpsURLConnection/B6216082.java throws ClosedByInterruptException
Make the test robust Reviewed-by: weijun
This commit is contained in:
parent
6a6fc9ad3f
commit
df345d27f4
@ -136,6 +136,7 @@ public class B6216082 {
|
|||||||
server.getLocalPort(), "/");
|
server.getLocalPort(), "/");
|
||||||
HttpURLConnection uc = (HttpURLConnection)url.openConnection();
|
HttpURLConnection uc = (HttpURLConnection)url.openConnection();
|
||||||
System.out.println(uc.getResponseCode());
|
System.out.println(uc.getResponseCode());
|
||||||
|
uc.disconnect();
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} finally {
|
} finally {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user