6782783: regtest HttpsURLConnection/B6216082.java throws ClosedByInterruptException

Make the test robust

Reviewed-by: weijun
This commit is contained in:
Xue-Lei Andrew Fan 2009-02-04 19:10:09 +08:00
parent 6a6fc9ad3f
commit df345d27f4

View File

@ -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 {