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 23, 2024
1 parent 8883994 commit e0d46d9
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 e0d46d9

Please sign in to comment.