Hi Tim,

A quick'n'dirty solution that comes to my mind is to configure the
ActorSystem in that test with an overridden configuration that points to an
invalid port/ip (depending on your journal plugin).

-Endre

On Tue, Feb 9, 2016 at 5:41 PM, Tim Pigden <[email protected]> wrote:

> Hi
> I have the following scenario:
> Program is running using postgres async akka persistence.
> My database becomes disconnected (server is turned off or otherwise
> unavailable)
> Various things fail.
> My database is turned back on
> Program stops failing
>
> So far so good - the program seems to recover itself.
>
> But is there any way of creating a unit test for this, short of turning my
> database on and off (I'm testing on a single machine) or otherwise mucking
> around at a system level?
>
> For example can I make the persistence module emulate a disconnected
> situaiton?
>
> Thanks
> Tim
>
>
> --
> >>>>>>>>>> Read the docs: http://akka.io/docs/
> >>>>>>>>>> Check the FAQ:
> http://doc.akka.io/docs/akka/current/additional/faq.html
> >>>>>>>>>> Search the archives: https://groups.google.com/group/akka-user
> ---
> You received this message because you are subscribed to the Google Groups
> "Akka User List" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/akka-user.
> For more options, visit https://groups.google.com/d/optout.
>



-- 
Akka Team
Typesafe - Reactive apps on the JVM
Blog: letitcrash.com
Twitter: @akkateam

-- 
>>>>>>>>>>      Read the docs: http://akka.io/docs/
>>>>>>>>>>      Check the FAQ: 
>>>>>>>>>> http://doc.akka.io/docs/akka/current/additional/faq.html
>>>>>>>>>>      Search the archives: https://groups.google.com/group/akka-user
--- 
You received this message because you are subscribed to the Google Groups "Akka 
User List" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to