-
Notifications
You must be signed in to change notification settings - Fork 1.4k
tests: lib: lte_lc_api: Enable missing subscriptions #25455
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
base: main
Are you sure you want to change the base?
Conversation
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 enables subscription configurations for modem sleep and TAU pre-warning notifications in the LTE LC API unit tests. These notification features were previously tested but their subscription configurations were not enabled in the test suite.
Key changes:
- Enabled
CONFIG_LTE_LC_MODEM_SLEEP_NOTIFICATIONSandCONFIG_LTE_LC_TAU_PRE_WARNING_NOTIFICATIONSin test configuration - Introduced
enable_notifications()helper function to consolidate notification setup mocking - Refactored multiple test cases to use the new helper function for cleaner test code
Reviewed Changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| tests/lib/lte_lc_api/prj.conf | Enabled modem sleep and TAU pre-warning notification subscription configurations |
| tests/lib/lte_lc_api/src/lte_lc_api_test.c | Added enable_notifications() helper and updated test cases to mock notification subscriptions conditionally |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
CI InformationTo view the history of this post, click the 'edited' button above Inputs:Sources:sdk-nrf: PR head: be9848341759a51759dcf20b4148c099f91fd6b3 more detailssdk-nrf:
Github labels
List of changed files detected by CI (3)Outputs:ToolchainVersion: df3cc9d822 Test Spec & Results: ✅ Success; ❌ Failure; 🟠 Queued; 🟡 Progress; ◻️ Skipped;
|
Enabled CONFIG_LTE_LC_MODEM_SLEEP_NOTIFICATIONS and CONFIG_LTE_LC_TAU_PRE_WARNING_NOTIFICATIONS in unit tests. The notifications were tested by the UT, but not the notification subscriptions. Signed-off-by: Tommi Kangas <tommi.kangas@nordicsemi.no>
9519eb0 to
be98483
Compare
Enabled
CONFIG_LTE_LC_MODEM_SLEEP_NOTIFICATIONSandCONFIG_LTE_LC_TAU_PRE_WARNING_NOTIFICATIONSin unit tests. The notifications were tested by the UT, but not the notification subscriptions.