You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
events: live tests for the shared feed (fan-out, reconnect, idle) against the pinned server #964
The shared event feed (#902, ADR-0041) has thorough component tests, but its core mechanics run only against ScriptedEventServer: SharedEventFeedTests (15), EventsClientReconnectTests (20) and EventsClientIdleWindowTests (8). The live suite against the pinned server subscribes to events in about ten classes, but only as a side path of other operations. No live test proves the feed's own behaviour against a real opencode server.
Live tests to add, using the pinned-server fixture:
Fan-out: two concurrent SubscribeAsync enumerations on one client both receive the same server events from a real turn, and the server sees one event-stream connection.
Reconnect: the fixture's server is stopped and started again. WatchConnectionAsync reports Reconnecting, then Connected, and the new server.connected admission marker arrives. Events produced after the restart are delivered, and the subscriptions stay alive.
Idle window: a real server that stays quiet past the idle window triggers a reconnect, without ending the subscription.
Selection: a Types filter selects locally against real traffic.
Done when these run in the live lane on all three operating systems, and each one goes red against a mutant of the behaviour it covers.
Activity