Fixed failing/ignored tests. See #1458

This commit is contained in:
Patrik Nordwall 2011-12-21 14:00:32 +01:00
parent f772b0183e
commit 1bce4c39c3
3 changed files with 12683 additions and 11 deletions

View file

@ -23,8 +23,12 @@ object CallingThreadDispatcherModelSpec {
class CallingThreadDispatcherModelSpec extends ActorModelSpec(CallingThreadDispatcherModelSpec.config) {
import ActorModelSpec._
val confKey = "test-calling-thread"
var dispatcherCount = 0
override def registerInterceptedDispatcher(): MessageDispatcherInterceptor = {
// use new key for each invocation, since the MessageDispatcherInterceptor holds state
dispatcherCount += 1
val confKey = "test-calling-thread" + dispatcherCount
val dispatcherConfigurator = new MessageDispatcherConfigurator(system.dispatcherFactory.defaultDispatcherConfig, system.dispatcherFactory.prerequisites) {
val instance = new CallingThreadDispatcher(prerequisites) with MessageDispatcherInterceptor {
override def key: String = confKey