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

Testing stages with multiple inputs and state does not work #28

Open
rju opened this issue Jan 19, 2023 · 1 comment
Open

Testing stages with multiple inputs and state does not work #28

rju opened this issue Jan 19, 2023 · 1 comment

Comments

@rju
Copy link
Collaborator

rju commented Jan 19, 2023

The TeeTime StageTester can be used to test stages with multiple input ports. However, when the stages have a state and the state depends on the sequence of events, then this fails, as inputs for different ports seem to be inputted in "parallel". Due to race conditions the sequence of events may change from one run to the next.

@rju
Copy link
Collaborator Author

rju commented Jan 19, 2023

A solution could be to execute inputs in the sequence they are specified in the test, e.g.,
send(values1).to(port1).send(values2).to(port2).send(additionalValues).to(port1).start();

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

No branches or pull requests

1 participant