File tree Expand file tree Collapse file tree 2 files changed +4
-1
lines changed
src/test/java/net/snowflake/client/jdbc Expand file tree Collapse file tree 2 files changed +4
-1
lines changed Original file line number Diff line number Diff line change @@ -61,6 +61,7 @@ public class ConnectionIT extends BaseJDBCWithSharedConnectionIT {
6161 private static final int SESSION_CREATION_OBJECT_DOES_NOT_EXIST_NOT_AUTHORIZED = 390201 ;
6262 private static final int ROLE_IN_CONNECT_STRING_DOES_NOT_EXIST = 390189 ;
6363 public static final int BAD_REQUEST_GS_CODE = 390400 ;
64+ public static final int NETWORK_ERROR_CODE = 200015 ;
6465
6566 public static final int WAIT_FOR_TELEMETRY_REPORT_IN_MILLISECS = 5000 ;
6667
Original file line number Diff line number Diff line change 55
66import static net .snowflake .client .core .SessionUtil .CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY ;
77import static net .snowflake .client .jdbc .ConnectionIT .BAD_REQUEST_GS_CODE ;
8+ import static net .snowflake .client .jdbc .ConnectionIT .NETWORK_ERROR_CODE ;
89import static net .snowflake .client .jdbc .ConnectionIT .INVALID_CONNECTION_INFO_CODE ;
910import static net .snowflake .client .jdbc .ConnectionIT .WAIT_FOR_TELEMETRY_REPORT_IN_MILLISECS ;
1011import static org .awaitility .Awaitility .await ;
@@ -595,7 +596,8 @@ public void testHttpsLoginTimeoutWithOutSSL() throws InterruptedException {
595596 assertThat (
596597 "Communication error" ,
597598 e .getErrorCode (),
598- anyOf (equalTo (INVALID_CONNECTION_INFO_CODE ), equalTo (BAD_REQUEST_GS_CODE )));
599+ anyOf (equalTo (INVALID_CONNECTION_INFO_CODE ), equalTo (BAD_REQUEST_GS_CODE ), equalTo (NETWORK_ERROR_CODE )));
600+
599601
600602 // since it returns normal response,
601603 // the telemetry does not create new event
You can’t perform that action at this time.
0 commit comments