Skip to content

SNOW-1957486 fix test #2119

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 11, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,7 @@ public class ConnectionIT extends BaseJDBCWithSharedConnectionIT {
private static final int SESSION_CREATION_OBJECT_DOES_NOT_EXIST_NOT_AUTHORIZED = 390201;
private static final int ROLE_IN_CONNECT_STRING_DOES_NOT_EXIST = 390189;
public static final int BAD_REQUEST_GS_CODE = 390400;
public static final int NETWORK_ERROR_CODE = 200015;

public static final int WAIT_FOR_TELEMETRY_REPORT_IN_MILLISECS = 5000;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
import static net.snowflake.client.core.SessionUtil.CLIENT_SESSION_KEEP_ALIVE_HEARTBEAT_FREQUENCY;
import static net.snowflake.client.jdbc.ConnectionIT.BAD_REQUEST_GS_CODE;
import static net.snowflake.client.jdbc.ConnectionIT.INVALID_CONNECTION_INFO_CODE;
import static net.snowflake.client.jdbc.ConnectionIT.NETWORK_ERROR_CODE;
import static net.snowflake.client.jdbc.ConnectionIT.WAIT_FOR_TELEMETRY_REPORT_IN_MILLISECS;
import static org.awaitility.Awaitility.await;
import static org.hamcrest.CoreMatchers.equalTo;
Expand Down Expand Up @@ -595,7 +596,10 @@ public void testHttpsLoginTimeoutWithOutSSL() throws InterruptedException {
assertThat(
"Communication error",
e.getErrorCode(),
anyOf(equalTo(INVALID_CONNECTION_INFO_CODE), equalTo(BAD_REQUEST_GS_CODE)));
anyOf(
equalTo(INVALID_CONNECTION_INFO_CODE),
equalTo(BAD_REQUEST_GS_CODE),
equalTo(NETWORK_ERROR_CODE)));

// since it returns normal response,
// the telemetry does not create new event
Expand Down
Loading