Skip to content

Commit 7f998d9

Browse files
SNOW-1935764: Explicitly pick account for heartbeat tests on jenkins (#2085)
1 parent 808407a commit 7f998d9

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

src/test/java/net/snowflake/client/jdbc/HeartbeatAsyncLatestIT.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ protected void submitQuery(boolean useKeepAliveSession, int queryIdx)
4343
"CLIENT_SESSION_KEEP_ALIVE",
4444
useKeepAliveSession ? Boolean.TRUE.toString() : Boolean.FALSE.toString());
4545

46-
try (Connection connection = getConnection(sessionParams);
46+
try (Connection connection = getConnection("s3testaccount", sessionParams);
4747
Statement stmt = connection.createStatement();
4848
// Query will take 5 seconds to run, but ResultSet will be returned immediately
4949
ResultSet resultSet =
@@ -83,7 +83,7 @@ public void testAsynchronousQueryFailure() throws Exception {
8383
@Test
8484
@DontRunOnGithubActions
8585
public void testIsValidWithInvalidSession() throws Exception {
86-
try (Connection connection = getConnection()) {
86+
try (Connection connection = getConnection("s3testaccount")) {
8787
// assert that connection starts out valid
8888
assertTrue(connection.isValid(5));
8989
Thread.sleep(61000); // sleep 61 seconds to await session expiration time

src/test/java/net/snowflake/client/jdbc/HeartbeatIT.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ protected void submitQuery(boolean useKeepAliveSession, int queryIdx)
9292
"CLIENT_SESSION_KEEP_ALIVE",
9393
useKeepAliveSession ? Boolean.TRUE.toString() : Boolean.FALSE.toString());
9494

95-
try (Connection connection = getConnection(sessionParams);
95+
try (Connection connection = getConnection("s3testaccount", sessionParams);
9696
Statement statement = connection.createStatement()) {
9797

9898
Thread.sleep(61000); // sleep 61 seconds

0 commit comments

Comments
 (0)