Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Access] Add unit test for websocket controller #6762

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Commits on Nov 26, 2024

  1. Add unit test for websocket controller

    * Add unit test for websocket controller
    * Add mock for websocket connection
    * Add mock for data provider
    * Add mock for data provider factory
    * Add mock for websocket connection
    
    The WebSocket Controller interacts with:
    1. Data Provider: Supplies data to the controller.
    2. WebSocket Connection: Handles communication with the client.
    
    To properly test the controller's logic, we mock these interactions.
    Since the controller runs two parallel routines (reader and writer),
    the tests also ensure both can shut down cleanly.
    A done channel is used in the tests to coordinate this process.
    illia-malachyn committed Nov 26, 2024
    Configuration menu
    Copy the full SHA
    a574fb6 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    2aa8933 View commit details
    Browse the repository at this point in the history

Commits on Nov 28, 2024

  1. Configuration menu
    Copy the full SHA
    8552a51 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    495cf03 View commit details
    Browse the repository at this point in the history

Commits on Nov 29, 2024

  1. Configuration menu
    Copy the full SHA
    8496af3 View commit details
    Browse the repository at this point in the history