8186765: Speed up test sun/net/www/protocol/https/HttpsClient/ProxyAuthTest.java
Reviewed-by: dfuchs, jpai
This commit is contained in:
parent
755958e5ee
commit
43dbf5899b
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2001, 2019, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2001, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
@ -100,6 +100,17 @@ public class ProxyAuthTest extends SSLSocketTemplate {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void doServerSide() throws Exception {
|
||||
if (expectSuccess) {
|
||||
super.doServerSide();
|
||||
} else {
|
||||
// we don't expect anything to connect to the server
|
||||
serverPort = 443;
|
||||
serverCondition.countDown();
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void runServerApplication(SSLSocket socket) throws Exception {
|
||||
String response = "Proxy authentication for tunneling succeeded ..";
|
||||
|
Loading…
Reference in New Issue
Block a user