Skip to content

Commit

Permalink
ignore test cases for badssl connect timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Jul 4, 2024
1 parent f6541a9 commit 5dfd25b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
import org.apache.http.impl.client.HttpClientBuilder;
import org.junit.Assert;
import org.junit.Before;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
Expand Down Expand Up @@ -555,6 +556,7 @@ public void testThrowSSLHandshakeException() throws ClientException, IOException
}

@Test
@Ignore
public void testIgnoreSSLCert() throws ClientException, IOException {
try {
HttpClientConfig clientConfig = HttpClientConfig.getDefault();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import org.apache.http.conn.ssl.DefaultHostnameVerifier;
import org.apache.http.conn.ssl.NoopHostnameVerifier;
import org.junit.Assert;
import org.junit.Ignore;
import org.junit.Rule;
import org.junit.Test;
import org.junit.rules.ExpectedException;
Expand Down Expand Up @@ -758,6 +759,7 @@ public void testIgnoreSSLCert() throws ClientException, IOException {
}

@Test
@Ignore
public void testRequestLevelAndClientLevelNotIgnoreSSLCert() throws ClientException, IOException {
thrown.expect(SSLHandshakeException.class);
HttpClientConfig clientConfig = HttpClientConfig.getDefault();
Expand Down

0 comments on commit 5dfd25b

Please sign in to comment.