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
Add integration tests for server-initiated disconnect paths
Covers the remaining server-disconnect gaps from docs/connection-lifecycle.md:
- DuplicateIdentity: a second connection with the same token disconnects
the first with DisconnectReason::DuplicateIdentity (no admin needed)
- ParticipantRemoved / RoomDeleted: driven via the lk CLI (room/identity
parsed from the join token's JWT payload); skipped unless
LIVEKIT_API_KEY/LIVEKIT_API_SECRET are set
- Eos teardown (S2): after a server-initiated disconnect, onRoomEos fires,
state is released, and onDisconnected does not double-fire
- Peer disconnect (S6): onParticipantDisconnected fires with the peer's
identity and the cached remote handle expires (needs LIVEKIT_TOKEN_B)
- Client-vs-server disconnect race (S1xD1): exactly one onDisconnected
regardless of which side wins
CI: export dev-server LIVEKIT_API_KEY/SECRET in the integration step so
the lk-driven tests run there (lk is already installed in that job).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
0 commit comments