Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Dec 4, 2025

Adds missing test coverage for the keep-alive task introduced in PR #627.

Tests Added

  • Task lifecycle: Verify _keep_alive_task creation on connect and cancellation on close/connection loss
  • Periodic execution: Verify task runs continuously while connected
  • Exception handling: Verify ping failures are caught and logged without stopping the loop

All tests use mocked sleep to avoid timing dependencies and verify both happy path and error scenarios.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI and others added 2 commits December 4, 2025 15:25
Co-authored-by: Lash-L <20257911+Lash-L@users.noreply.github.com>
Co-authored-by: Lash-L <20257911+Lash-L@users.noreply.github.com>
Copilot AI changed the title [WIP] Update stacked PR based on feedback for pinging feature Add test coverage for LocalChannel keep-alive functionality Dec 4, 2025
Copilot AI requested a review from Lash-L December 4, 2025 15:32
@Lash-L Lash-L marked this pull request as ready for review December 4, 2025 15:35
@Lash-L Lash-L merged commit c002c36 into local_client_ping Dec 4, 2025
5 of 13 checks passed
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.

2 participants