-
Notifications
You must be signed in to change notification settings - Fork 310
Tests | Activate SplitPacket Tests #3061
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
/azp run |
Commenter does not have sufficient privileges for PR 3061 in repo dotnet/SqlClient |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #3061 +/- ##
==========================================
- Coverage 72.68% 66.12% -6.57%
==========================================
Files 283 292 +9
Lines 58975 56691 -2284
==========================================
- Hits 42864 37485 -5379
- Misses 16111 19206 +3095
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
AI Blurp
This pull request includes several improvements and refactorings to the
SplitPacketTest
class and theDataTestUtility
class in the Microsoft.Data.SqlClient test suite. The most important changes include adding new utility methods, refactoring existing methods, and enhancing the test class with proper resource disposal.Improvements and refactorings:
src/Microsoft.Data.SqlClient/tests/ManualTests/DataCommon/DataTestUtility.cs
: Added new methodsIsNotNamedInstance
andIsLocalHost
to theDataTestUtility
class for better connection string handling and test conditions.Enhancements to test class:
src/Microsoft.Data.SqlClient/tests/ManualTests/SQL/SplitPacketTest/SplitPacketTest.cs
: Refactored theSplitPacketTest
class to use private fields with underscores, addedCancellationToken
support to theSetupProxy
method, and implemented theIDisposable
interface for proper resource cleanup. [1] [2] [3] [4] [5]These changes enhance the code readability, maintainability, and ensure that resources are properly managed during the tests.
Human stuff
This removes the ActiveIssue 5538 from the SplitPacketTest
It makes sure that the test is only run on localhost and without named instances due to the fact that the tests are proxying the requests.
Also added IDisposable cleanup so that the started threads don't hang around.