Silence some more noisy tests
This commit is contained in:
parent
d1b8b475fa
commit
068e77b74d
1 changed files with 15 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue