Silence some more noisy tests

This commit is contained in:
Derek Williams 2011-06-20 15:24:39 -06:00
parent d1b8b475fa
commit 068e77b74d

View file

@ -2,12 +2,16 @@ package akka.actor.dispatch
import java.util.concurrent.{ CountDownLatch, TimeUnit }
import org.scalatest.junit.JUnitSuite
import org.junit.Test
import org.junit.{ Test, Before, After }
import akka.dispatch.Dispatchers
import akka.actor.Actor
import Actor._
import akka.event.EventHandler
import akka.testkit.TestEvent._
import akka.testkit.EventFilter
object PinnedActorSpec {
class TestActor extends Actor {
self.dispatcher = Dispatchers.newPinnedDispatcher(self)
@ -26,6 +30,16 @@ class PinnedActorSpec extends JUnitSuite {
private val unit = TimeUnit.MILLISECONDS
@Before
def beforeEach {
EventHandler.notify(Mute(EventFilter[RuntimeException]("Failure")))
}
@After
def afterEach {
EventHandler.notify(UnMuteAll)
}
@Test
def shouldSendOneWay {
var oneWay = new CountDownLatch(1)