Skip to content

Commit

Permalink
Merge pull request #198 from v-suhame/connectionResiliency
Browse files Browse the repository at this point in the history
skip connectionResiliency in test that checks for timeout
  • Loading branch information
Suraiya Hameed authored Mar 13, 2017
2 parents 52e638c + cf793a3 commit de50fde
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ public void testQueryTimeout() throws Exception {

@Test
public void testSocketTimeout() throws Exception {
// cancel connection resilience to test socketTimeout
connectionString += "connectRetryCount=0";
SQLServerConnection conn = (SQLServerConnection) DriverManager.getConnection(connectionString);

dropWaitForDelayProcedure(conn);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -273,6 +273,10 @@ public void Repro47239() throws SQLException {
public void Repro47239_large() throws Exception {

assumeTrue("JDBC42".equals(Utils.getConfiguredProperty("JDBC_Version")), "Aborting test case as JDBC version is not compatible. ");

// cancel connection resilience to test
connectionString += "connectRetryCount=0";

// the DBConnection for detecting whether the server is SQL Azure or SQL Server.
con = DriverManager.getConnection(connectionString);
final String warning;
Expand Down

0 comments on commit de50fde

Please sign in to comment.