Hi
I want to unit test that my program behaves correctly through the 
persistence recovery after unexpected shutdown.

I can see how I can do this in completely separate tests running one after 
the other. But can I do it within a single test? (I'm using specs2 and akka 
testkit)

The problem I have is that if I start a second akka system after the first 
test completes it complains 

ERROR - IO error: lock /home/tim/code/android/tspTasks/journal/LOCK: 
already held by process

So my previous occurrence is still hanging around and has a lock. Even if I 
send a poisonpill to my PersistentActor

I'm running the 2 tests within one "should" block in 
specs.mutable.Specification with sequential on.

Can I force the PersistentActor to relinquish it's lock or something?

-- 
>>>>>>>>>>      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 http://groups.google.com/group/akka-user.
For more options, visit https://groups.google.com/d/optout.

Reply via email to