You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I noticed that in all tests whose uses testStreamHandler has a time.Sleep(time.Second) to wait for the messages sent to the stream handler to arrive and then call the asserts to check.
However, is it possible to testStreamHandler struct has a field messageArrived chan<- struct{} that always a message is arrived sent a message to the test to unblock and exec the tests without time.Sleep(...)
Yes you can move it there for now. @danforbes when would you like to convert the testing plan/what we discussed into epics? That would fall under the make our test test suite faster epic I think.
Issue summary
testStreamHandler
has atime.Sleep(time.Second)
to wait for the messages sent to the stream handler to arrive and then call the asserts to check.testStreamHandler
struct has a fieldmessageArrived chan<- struct{}
that always a message is arrived sent a message to the test to unblock and exec the tests withouttime.Sleep(...)
Other information and links
In the test side
The text was updated successfully, but these errors were encountered: