diff --git a/src/test/java/com/microsoft/sqlserver/jdbc/SQLServerConnectionTest.java b/src/test/java/com/microsoft/sqlserver/jdbc/SQLServerConnectionTest.java index 5461fba32..68999a4f6 100644 --- a/src/test/java/com/microsoft/sqlserver/jdbc/SQLServerConnectionTest.java +++ b/src/test/java/com/microsoft/sqlserver/jdbc/SQLServerConnectionTest.java @@ -985,8 +985,7 @@ public void testBadServerCert() throws SQLException { */ @Test public void testParameterMetadataAccessDenial() throws SQLException { - try (Connection conn = PrepUtil.getConnection(connectionString + ";columnEncryptionSetting=Enabled"); - SQLServerStatement stmt = (SQLServerStatement) conn.createStatement()) { + try (SQLServerStatement stmt = (SQLServerStatement) connection.createStatement()) { CryptoCache cache = new CryptoCache(); Map cekList = new HashMap<>(); Parameter[] params = {new Parameter(false)};