Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 16, 2025

Brief summary of changes

  • Updated test mocks in tests/back_end/test_server.py to use new_event_loop instead of get_event_loop, aligning with the implementation changes in server.py where get_event_loop is no longer imported or used.

Notes

Three test functions were updated:

  • test_launch_server
  • test_launch_proxy_client
  • test_launch_proxy_client_failed_init

Each now correctly mocks asyncio.new_event_loop() which matches the current server implementation that creates a temporary event loop for fetching manipulators.


💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.

Copilot AI changed the title [WIP] Address feedback on request loop implementation from PR #492 Update tests to mock new_event_loop instead of deprecated get_event_loop Nov 16, 2025
Copilot AI requested a review from kjy5 November 16, 2025 02:29
@kjy5 kjy5 marked this pull request as ready for review November 16, 2025 02:29
@kjy5 kjy5 merged commit 2ea87b2 into fix-launch-loop Nov 16, 2025
8 checks passed
@kjy5 kjy5 deleted the copilot/sub-pr-492 branch November 16, 2025 02:29
kjy5 added a commit that referenced this pull request Nov 16, 2025
* Create a loop to make requests

* Update src/ephys_link/back_end/server.py

Co-authored-by: Copilot <[email protected]>

* Update src/ephys_link/back_end/server.py

Co-authored-by: Copilot <[email protected]>

* Hatch static analysis

* Update tests to mock new_event_loop instead of deprecated get_event_loop (#493)

* Initial plan

* Update tests to mock new_event_loop instead of get_event_loop

Co-authored-by: kjy5 <[email protected]>

---------

Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: Kenneth Yang <[email protected]>

---------

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Copilot <[email protected]>
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