I have a graph composed of several flows, each of which returns an Either
of some error or the actual result. The code is using divertTo
in order to send any Lefts
to a different sink than the happy-path downstream sink.
The problem I am having is that when using the Akka Streams testkit, I can't find a way to probe the sink used in the divertTo
call. I can probe the happy-path sink fine but I really need to find a way to test the not-so-happy paths to prove that my flow is working.
Has anybody done this type of thing before using the streams testkit?