Skip to content

Commit 1efa206

Browse files
committed
Further correction to reflection-based test
1 parent b015e32 commit 1efa206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/Common/SystemDataInternals/FedAuthTokenHelper.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ internal static string GetTokenHash(object authenticationContextValueObj)
7777
byte[] tokenBytes = (byte[])authenticationContextValueObj.GetType().GetProperty("AccessToken", BindingFlags.NonPublic | BindingFlags.Instance).GetValue(authenticationContextValueObj, null);
7878

7979
object sqlFedAuthTokenObj = sqlFedAuthTokenConstructorInfo.Invoke(new object[] { });
80-
FieldInfo accessTokenInfo = sqlFedAuthTokenObj.GetType().GetField("_accessToken", BindingFlags.NonPublic | BindingFlags.Instance);
80+
FieldInfo accessTokenInfo = sqlFedAuthTokenObj.GetType().GetField("AccessToken", BindingFlags.NonPublic | BindingFlags.Instance);
8181
accessTokenInfo.SetValue(sqlFedAuthTokenObj, tokenBytes);
8282

8383
string tokenHash = (string)tokenHashInfo.Invoke(activeDirectoryAuthenticationTimeoutRetryHelperObj, new object[] { sqlFedAuthTokenObj });

0 commit comments

Comments
 (0)