File tree 2 files changed +6
-1
lines changed
src/test/java/net/snowflake/client/jdbc
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -58,6 +58,7 @@ public class ConnectionIT extends BaseJDBCWithSharedConnectionIT {
58
58
private static final int SESSION_CREATION_OBJECT_DOES_NOT_EXIST_NOT_AUTHORIZED = 390201 ;
59
59
private static final int ROLE_IN_CONNECT_STRING_DOES_NOT_EXIST = 390189 ;
60
60
public static final int BAD_REQUEST_GS_CODE = 390400 ;
61
+ public static final int NETWORK_ERROR_CODE = 200015 ;
61
62
62
63
public static final int WAIT_FOR_TELEMETRY_REPORT_IN_MILLISECS = 5000 ;
63
64
Original file line number Diff line number Diff line change 3
3
import static net .snowflake .client .core .SessionUtil .CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY ;
4
4
import static net .snowflake .client .jdbc .ConnectionIT .BAD_REQUEST_GS_CODE ;
5
5
import static net .snowflake .client .jdbc .ConnectionIT .INVALID_CONNECTION_INFO_CODE ;
6
+ import static net .snowflake .client .jdbc .ConnectionIT .NETWORK_ERROR_CODE ;
6
7
import static net .snowflake .client .jdbc .ConnectionIT .WAIT_FOR_TELEMETRY_REPORT_IN_MILLISECS ;
7
8
import static org .awaitility .Awaitility .await ;
8
9
import static org .hamcrest .CoreMatchers .equalTo ;
@@ -592,7 +593,10 @@ public void testHttpsLoginTimeoutWithOutSSL() throws InterruptedException {
592
593
assertThat (
593
594
"Communication error" ,
594
595
e .getErrorCode (),
595
- anyOf (equalTo (INVALID_CONNECTION_INFO_CODE ), equalTo (BAD_REQUEST_GS_CODE )));
596
+ anyOf (
597
+ equalTo (INVALID_CONNECTION_INFO_CODE ),
598
+ equalTo (BAD_REQUEST_GS_CODE ),
599
+ equalTo (NETWORK_ERROR_CODE )));
596
600
597
601
// since it returns normal response,
598
602
// the telemetry does not create new event
You can’t perform that action at this time.
0 commit comments