Test pipeTo self


(Syed Ali) #1

Hi,

Does anyone how to test pipeTo self in an actor?

I have an actor upon receiving initial message do different steps of processing by sending messages to self.

In ,my test I am sending the initial message but not sure how to test different stages.

By the way this actor use another actor to have work done and last message is PoisonPill.

Regards,

Syed


(Arnout Engelen) #2

I would recommend not testing the internal messaging in the actor. Instead you could consider providing a TestProbe.ref to test the communication with that “other actor”?