-
Notifications
You must be signed in to change notification settings - Fork 2.2k
[Darwin] Unit test for #39003 #39041
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
[Darwin] Unit test for #39003 #39041
Conversation
PR #39041: Size comparison from 9f95d75 to 0740e59 Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
Co-authored-by: Kiel Oleson <kielo@apple.com>
There was a problem hiding this 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 adds a new unit test to validate the device resubscription behavior and removes redundant code from the resubscription logic in the CHIP framework. Key changes include:
- Adding unit test test048_MTRDeviceResubscribeOnSubscriptionPool in MTRDeviceTests.m.
- Introducing a new unit test-only method unitTestSyncRunOnDeviceQueue and a subscriptionMaxIntervalOverride property in MTRDeviceTestDelegate.
- Modifying the resubscription logic in MTRDevice_Concrete.mm to remove duplicated code and adjust the subscription pool clearing behavior.
Reviewed Changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
File | Description |
---|---|
src/darwin/Framework/CHIPTests/TestHelpers/MTRTestDeclarations.h | Added two new test-only method declarations. |
src/darwin/Framework/CHIPTests/TestHelpers/MTRDeviceTestDelegate.m | Added a check for subscriptionMaxIntervalOverride. |
src/darwin/Framework/CHIPTests/TestHelpers/MTRDeviceTestDelegate.h | Added subscriptionMaxIntervalOverride property. |
src/darwin/Framework/CHIPTests/MTRDeviceTests.m | Introduced a new unit test for resubscription behavior. |
src/darwin/Framework/CHIP/MTRDevice_Concrete.mm | Updated resubscription flow and added a debug-only test method. |
PR #39041: Size comparison from 9f95d75 to d568ca8 Full report (73 builds for bl602, bl702, bl702l, cc13x4_26x4, cc32xx, cyw30739, efr32, esp32, linux, nrfconnect, nxp, psoc6, qpg, stm32, telink, tizen)
|
* [Darwin] Unit test for project-chip#39003 * Update src/darwin/Framework/CHIPTests/MTRDeviceTests.m Co-authored-by: Kiel Oleson <kielo@apple.com> --------- Co-authored-by: Justin Wood <woody@apple.com> Co-authored-by: Kiel Oleson <kielo@apple.com>
Fixes #39004
Added unit test, and also removed unnecessary code in #39003.
Testing
The new test should pass.