File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/ConnectivityTests Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,10 +206,10 @@ public static void AADPasswordWithWrongPassword()
206206 string [ ] credKeys = { "Password" , "PWD" } ;
207207 string connStr = DataTestUtility . RemoveKeysInConnStr ( DataTestUtility . AADPasswordConnectionString , credKeys ) + "Password=TestPassword;" ;
208208
209- SqlException e = Assert . Throws < SqlException > ( ( ) => ConnectAndDisconnect ( connStr ) ) ;
209+ Assert . Throws < SqlException > ( ( ) => ConnectAndDisconnect ( connStr ) ) ;
210210
211- string expectedMessage = "ID3242: The security token could not be authenticated or authorized." ;
212- Assert . Contains ( expectedMessage , e . Message ) ;
211+ // We cannot verify error message with certainity as driver may cache token from other tests for current user
212+ // and error message may change accordingly.
213213 }
214214
215215 [ ConditionalFact ( nameof ( IsAADConnStringsSetup ) ) ]
You can’t perform that action at this time.
0 commit comments