Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Test | Fix pool reflection in tests#3379

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
paulmedynski merged 1 commit intomainfromdev/mdaigle/fix-pool-reflection
May 27, 2025

Conversation

mdaigle
Copy link
Contributor

@mdaiglemdaigle commentedMay 27, 2025
edited
Loading

Description

My last PR ran as a forked build and so missed some tests that use reflection to access pool properties. This PR corrects the issue and runs as a branch build to ensure full coverage.

Issues

Fixes test failures due to#3352

Testing

Runs full test suite (including branch-build-only tests)

Guidelines

Please review the contribution guidelines before submitting a pull request:

@CopilotCopilotAI review requested due to automatic review settingsMay 27, 2025 18:04
@mdaiglemdaigle requested a review froma team as acode ownerMay 27, 2025 18:04
Copy link
Contributor

@CopilotCopilotAI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Pull Request Overview

This PR fixes issues with test failures by correcting the reflection usage to access pool properties in authentication tests.

  • Changed reflection binding flags for "AuthenticationContexts" from non-public to public.
  • Ensured that tests now correctly access the intended property using the updated API.
Comments suppressed due to low confidence (1)

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

  • The change from BindingFlags.NonPublic to BindingFlags.Public indicates an adjustment to access a now public member. Please confirm that this update aligns with the overall API design and that any related documentation has been updated accordingly.
IEnumerable authenticationContexts = (IEnumerable)databaseConnectionPoolObj.GetType().GetProperty("AuthenticationContexts", BindingFlags.Public | BindingFlags.Instance).GetValue(databaseConnectionPoolObj, null);

@codecovCodecov
Copy link

codecovbot commentedMay 27, 2025
edited
Loading

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 64.45%. Comparing base(b8948f2) to head(2fd3001).
Report is 7 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@##             main    #3379      +/-   ##==========================================- Coverage   67.04%   64.45%   -2.59%==========================================  Files         300      298       -2       Lines       65376    65525     +149     ==========================================- Hits        43831    42236    -1595- Misses      21545    23289    +1744
FlagCoverage Δ
addons92.58% <ø> (ø)
netcore68.48% <ø> (-3.72%)⬇️
netfx65.37% <ø> (+0.18%)⬆️

Flags with carried forward coverage won't be shown.Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report?Share it here.

🚀 New features to boost your workflow:
  • ❄️Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@paulmedynskipaulmedynski merged commite980d0c intomainMay 27, 2025
251 checks passed
@paulmedynskipaulmedynski deleted the dev/mdaigle/fix-pool-reflection branchMay 27, 2025 23:13
@paulmedynskipaulmedynski added this to the6.1-preview2 milestoneJun 23, 2025
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers

Copilot code reviewCopilotCopilot left review comments

@David-EngelDavid-EngelDavid-Engel approved these changes

@paulmedynskipaulmedynskipaulmedynski approved these changes

Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
6.1-preview2
Development

Successfully merging this pull request may close these issues.

3 participants
@mdaigle@David-Engel@paulmedynski

[8]ページ先頭

©2009-2025 Movatter.jp