TeeTime icon indicating copy to clipboard operation
TeeTime copied to clipboard

Testing stages with multiple inputs and state does not work

Open rju opened this issue 3 years ago • 1 comments

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 avatar Jan 19 '23 11:01 rju

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();

rju avatar Jan 19 '23 11:01 rju