Tweaking the interrupt restore it and breaking out of throughput

This commit is contained in:
Viktor Klang 2011-07-15 11:17:02 +02:00
parent 11cbebbee4
commit f3c019df8c
4 changed files with 16 additions and 11 deletions

View file

@ -5,6 +5,7 @@ package akka.testkit
import akka.actor.dispatch.ActorModelSpec
import java.util.concurrent.CountDownLatch
import org.junit.{After, Test}
class CallingThreadDispatcherModelSpec extends ActorModelSpec {
import ActorModelSpec._
@ -42,6 +43,13 @@ class CallingThreadDispatcherModelSpec extends ActorModelSpec {
//Can't handle this...
}
@After
def after {
//remove the interrupted status since we are messing with interrupted exceptions.
Thread.interrupted()
}
}
// vim: set ts=2 sw=2 et: