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

Add end-to-end tests with multiple senders and receivers #105

Open
gavv opened this issue May 29, 2023 · 0 comments
Open

Add end-to-end tests with multiple senders and receivers #105

gavv opened this issue May 29, 2023 · 0 comments
Labels
good first issue Good for newcomers help wanted Contributions are welcome tests Improvements or additions to tests

Comments

@gavv
Copy link
Member

gavv commented May 29, 2023

TestEnd2End_Default is a simple integration test that writes samples to sender, reads them from receiver, and verifies the received stream.

This test uses a single sender and a single receiver, however other combinations are supported too:

  • many senders, one receiver
  • one sender, many receivers
  • many senders, many receivers

These combinations are supported using slots. You may create multiple slots on a sender, and connect each slot to different receiver. You can create multiple slots on receiver, and connect senders to different receiver slots. Finally, you can connect multiple senders to the same slot of receiver, but in this case all senders should use the same protocol.

We should cover all these combinations with tests (feel free to suggest better names):

  • TestEnd2End_Connections/one_sender_two_receivers

    Two receivers (each with one slot), and one sender with two slots, connected to two receivers.

  • TestEnd2End_Connections/one_receiver_one_slot_two_senders

    One receiver with one slot, and two senders connected to the same receiver slot.

  • TestEnd2End_Connections/one_receiver_two_slots_two_senders

    One receiver with two slot (ideally with two different protocols), and two senders, each connected to own slot.

  • TestEnd2End_Connections/two_receivers_two_senders

    Two receivers, each with one slot, and two senders, each with two slots, one slot connected to first receiver, and another slot connected to second receiver.

TestEnd2End_Default and TestEnd2End_Connections should share the code for sending and receiving samples, so that the algorithm described in #101 would be used for both of them.

@gavv gavv added help wanted Contributions are welcome tests Improvements or additions to tests good first issue Good for newcomers labels May 29, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
good first issue Good for newcomers help wanted Contributions are welcome tests Improvements or additions to tests
Projects
None yet
Development

No branches or pull requests

1 participant