Skip to content
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

add robust unit test for MIoTNetwork async monitoring #193

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Imadnajam
Copy link

Pull Request: Add asynchronous unit test for MIoTNetwork monitoring

Added

  • Event handlers for network_status and network_info changes, ensuring proper logging and validation of state transitions.

Improved

  • Resource safety by using a try-finally block to guarantee cleanup with deinit_async.
  • Readability with descriptive handler names and structured inline comments.

Ensured

  • Clear and consistent test output by logging network state transitions during the 3-second monitoring window.

This implementation enhances the robustness and maintainability of the test, providing a strong foundation for validating MIoTNetwork's asynchronous behavior.

Added event handlers for network_status and network_info changes, ensuring proper logging and validation of state transitions.
Copy link
Contributor

@SusanPhevos SusanPhevos left a comment

Choose a reason for hiding this comment

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

validate-lint action failed. Please correct it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants