Skip to content

Commit

Permalink
SNOW-799391: Check only http connection timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-dprzybysz committed Oct 22, 2024
1 parent 239b448 commit be05e94
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1635,7 +1635,7 @@ public void shouldFailOnSslExceptionWithLinkToTroubleShootingGuide() throws Inte
} catch (SQLException e) {
// *.badssl.com may fail with timeout
if (!(e.getCause() instanceof SSLHandshakeException)
&& e.getCause().getMessage().toLowerCase().contains("timeout")) {
&& e.getCause().getMessage().toLowerCase().contains("timed out")) {
return;
}
assertThat(e.getCause(), instanceOf(SSLHandshakeException.class));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -421,7 +421,7 @@ public void testWrongHost() throws InterruptedException {
// *.badssl.com may fail with timeout
if (!(ex.getCause() instanceof SSLPeerUnverifiedException)
&& !(ex.getCause() instanceof SSLHandshakeException)
&& ex.getCause().getMessage().toLowerCase().contains("timeout")) {
&& ex.getCause().getMessage().toLowerCase().contains("timed out")) {
return;
}
assertThat(ex, instanceOf(SnowflakeSQLException.class));
Expand Down

0 comments on commit be05e94

Please sign in to comment.