Skip to content

Fix connection reference in testing #3

Description

@stam

Because we create the connection instance inside the websocket listener, we have no clean way to access it in the tests.

We currently set the websocket.connection, but this is only possible if the websocket is mocked. Therefore the Connection.init contains test only code which is nasty.

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