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 {
61
61
private static final int SESSION_CREATION_OBJECT_DOES_NOT_EXIST_NOT_AUTHORIZED = 390201 ;
62
62
private static final int ROLE_IN_CONNECT_STRING_DOES_NOT_EXIST = 390189 ;
63
63
public static final int BAD_REQUEST_GS_CODE = 390400 ;
64
+ public static final int NETWORK_ERROR_CODE = 200015 ;
64
65
65
66
public static final int WAIT_FOR_TELEMETRY_REPORT_IN_MILLISECS = 5000 ;
66
67
Original file line number Diff line number Diff line change 5
5
6
6
import static net .snowflake .client .core .SessionUtil .CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY ;
7
7
import static net .snowflake .client .jdbc .ConnectionIT .BAD_REQUEST_GS_CODE ;
8
+ import static net .snowflake .client .jdbc .ConnectionIT .NETWORK_ERROR_CODE ;
8
9
import static net .snowflake .client .jdbc .ConnectionIT .INVALID_CONNECTION_INFO_CODE ;
9
10
import static net .snowflake .client .jdbc .ConnectionIT .WAIT_FOR_TELEMETRY_REPORT_IN_MILLISECS ;
10
11
import static org .awaitility .Awaitility .await ;
@@ -595,7 +596,8 @@ public void testHttpsLoginTimeoutWithOutSSL() throws InterruptedException {
595
596
assertThat (
596
597
"Communication error" ,
597
598
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
+
599
601
600
602
// since it returns normal response,
601
603
// the telemetry does not create new event
You can’t perform that action at this time.
0 commit comments