Skip to content

Commit c830543

Browse files
committed
Updated the test case
1 parent a89705b commit c830543

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/test/java/com/microsoft/sqlserver/jdbc/fedauth/FedauthTest.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -512,9 +512,9 @@ public void testManagedIdentityWithEncryptStrict() throws SQLException {
512512
ds.setURL(url);
513513

514514
try (Connection conn = ds.getConnection()) {
515-
fail("Expected connection to fail with encrypt=strict");
515+
assertNotNull(conn);
516516
} catch (SQLException e) {
517-
assertTrue(e.getMessage().contains("SSL"), "Expected SSL error.");
517+
fail("Expected connection to succeed with encrypt=strict, but it failed with error: " + e.getMessage());
518518
}
519519
}
520520

0 commit comments

Comments
 (0)