Skip to content

Commit 9387456

Browse files
authored
Fix flaky NettyClientProxyConfigurationTest proxy error assertion (#7000)
1 parent f6c2e57 commit 9387456

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

http-clients/netty-nio-client/src/test/java/NettyClientProxyConfigurationTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
* permissions and limitations under the License.
1414
*/
1515

16-
import java.net.ConnectException;
16+
import java.io.IOException;
1717
import java.util.concurrent.ExecutionException;
1818
import software.amazon.awssdk.http.SdkHttpClient;
1919
import software.amazon.awssdk.http.async.SdkAsyncHttpClient;
@@ -43,6 +43,6 @@ protected Class<? extends Exception> getProxyFailedExceptionType() {
4343

4444
@Override
4545
protected Class<? extends Exception> getProxyFailedCauseExceptionType() {
46-
return ConnectException.class;
46+
return IOException.class;
4747
}
4848
}

0 commit comments

Comments
 (0)