Service node ends its call when the loop cancels every task; test order and timing leaks
_serve_once treated a cancelled call future as finished, so an event loop cancelling all tasks at once (shutdown) never sent the worker a cancel and the call's thread kept asyncio.run waiting for SILENCE_S. The cameras audio test now removes its voice flow and device, the unpaired-frame test waits for its first frame before the unpair, and test_connector no longer inherits the controller an app test bound to demand. Claude-Session: https://claude.ai/code/session_01SSi5AvZ7pFmySK8zy3NPMh
This commit is contained in:
@@ -313,7 +313,9 @@ def test_a_port_is_wanted_while_watched_or_read(monkeypatch):
|
||||
from fluksio.flow.demand import demand
|
||||
|
||||
node = a_sensor([])
|
||||
# A worker process binds no controller and cannot see who watches.
|
||||
# A worker process binds no controller and cannot see who watches. The
|
||||
# one an app test bound stays on the process-wide `demand` after its stop.
|
||||
monkeypatch.setattr(demand, "_controller", None)
|
||||
assert node.wanted("reading")
|
||||
|
||||
reads: set[str] = set()
|
||||
|
||||
Reference in New Issue
Block a user