Skip to content

WS: integration tests for reconnect + sporadic channels (/liquidation, announcement) #169

Description

@martinkersner

The async WS client (datamaxi.aio.ws, #168) is unit-tested against a local websockets server and smoke-tested live, but two behaviors aren't covered end-to-end:

  • reconnect-with-resubscribeAsyncWSConnection reconnects and replays active subscriptions on a dropped connection; not yet exercised by a test (kill the server mid-stream, assert the client re-subscribes and resumes).
  • sporadic channels/liquidation (subscribe-only, event-driven) and /announcement/listing (Pro+, rare) only got ack-level live checks; add a live/integration lane that tolerates quiet windows.

Suggested: a websockets-server test that drops + restores the connection to assert reconnect, plus an opt-in keyed integration lane (like test_call.py) for the sporadic channels. importorskip-guarded.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions