Skip to content

Fix connection reference in testing #3

@stam

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.

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