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

bridge: add test cases for MSGQ-to-ZMQ bridge #34825

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

Conversation

deanlee
Copy link
Contributor

@deanlee deanlee commented Mar 9, 2025

Adds test cases to validate the core functionality of the MSGQ-to-ZMQ bridge:

  1. Initialization: Confirms the bridge correctly sets up socket pairs for the endpoints.
  2. Subscriber Connection: Verifies that MSGQ subscriber sockets are created on demand when a ZMQ client connects.
  3. Message Forwarding: Ensures successful transmission and reception of messages.
  4. Order Preservation: Confirms messages are received in the order they were sent.
  5. Subscriber Disconnect: Validates that MSGQ sockets are released when the ZMQ subscriber disconnects.
  6. Sleep Mode: Verifies the bridge enters sleep mode when no ZMQ subscribers are active.

resolve: commaai/msgq#319

@deanlee deanlee changed the title bridge: add comprehensive test coverage for MSGQ-to-ZMQ bridge bridge: add test cases for core functionality of MSGQ-to-ZMQ bridge Mar 9, 2025
@deanlee deanlee force-pushed the bridge_testcase branch 2 times, most recently from ea1ec2b to 5558b88 Compare March 9, 2025 11:57
@deanlee deanlee marked this pull request as ready for review March 9, 2025 16:02
@deanlee deanlee changed the title bridge: add test cases for core functionality of MSGQ-to-ZMQ bridge bridge: add test cases for MSGQ-to-ZMQ bridge Mar 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add tests around bridge
1 participant