Skip to content

Commit

Permalink
temporarily ignore failures with java 9
Browse files Browse the repository at this point in the history
  • Loading branch information
yschimke committed Dec 27, 2016
1 parent 525f922 commit 3a1f393
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
package okhttp3.internal.tls;

import java.io.IOException;
import java.net.SocketException;
import java.security.GeneralSecurityException;
import javax.net.ssl.SSLHandshakeException;
import javax.net.ssl.SSLSocket;
Expand Down Expand Up @@ -162,6 +163,8 @@ public void setUp() throws GeneralSecurityException {
call.execute();
fail();
} catch (SSLHandshakeException expected) {
} catch (SocketException expected) {
// JDK 9
}
}

Expand All @@ -183,6 +186,8 @@ public void setUp() throws GeneralSecurityException {
call.execute();
fail();
} catch (SSLHandshakeException expected) {
} catch (SocketException expected) {
// JDK 9
}
}

Expand Down

0 comments on commit 3a1f393

Please sign in to comment.