Hello,
I am building a library/DSL on top of Akka Streams to easily turn an HTTP resource into a stream in given certain timing.
One of the tests is that given a periodic cadence (e.g., every 3 minutes), asset that a stream with no failures yields events in that cadence.
This test is not difficult to write, but it takes a long time to run, especially if one were to use ScalaCheck to create many different periods. I am wondering if there is a way to mock time to test Akka Streams. It looks from the test page in the docs that many Akka Streams tests are time-based.
2 posts - 2 participants