Skip to content

Commit

Permalink
Exclude testClientProcessId against JDBC42 since the tests can run un…
Browse files Browse the repository at this point in the history
…der a newer JVM but the expected result is dependent on what Java version the jar was built with.
  • Loading branch information
David-Engel committed Jul 29, 2021
1 parent a5af949 commit ffb626d
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -42,6 +42,7 @@ public class ClientProcessIdTest extends AbstractTest {

@Test
@Tag(Constants.xAzureSQLDW)
@Tag(Constants.xJDBC42)
public void testClientProcessId() throws SQLException {
SQLServerDataSource ds = new SQLServerDataSource();
ds.setURL(connectionString);
Expand All @@ -50,7 +51,7 @@ public void testClientProcessId() throws SQLException {
try (Connection con = ds.getConnection(); Statement stmt = con.createStatement()) {
try (ResultSet rs = stmt.executeQuery(sqlSelect)) {
if (rs.next()) {
assertEquals(rs.getInt(1), pid);
assertEquals(pid, rs.getInt(1));
} else {
assertTrue(false, "Expected row of data was not found.");
}
Expand Down

0 comments on commit ffb626d

Please sign in to comment.