Solve UnreachableNodeJoinsAgainSpec problem, see #3247

* UnreachableNodeJoinsAgain failed because of gated connection
* Removed default test value of retry-gate-closed-for, instead
  default from reference.conf is used, i.e. 0s
* deadLetters logging love
This commit is contained in:
Patrik Nordwall 2013-04-22 20:39:32 +02:00
parent c1b08fb6dc
commit 2ebb2a0b9c
12 changed files with 59 additions and 43 deletions

View file

@ -15,6 +15,7 @@ import com.typesafe.config.{ Config, ConfigFactory }
import java.util.concurrent.TimeoutException
import akka.dispatch.Dispatchers
import akka.pattern.ask
import akka.testkit.TestEvent._
object AkkaSpec {
val testConf: Config = ConfigFactory.parseString("""
@ -93,4 +94,12 @@ abstract class AkkaSpec(_system: ActorSystem)
override def expectedTestDuration: FiniteDuration = 60 seconds
def muteDeadLetters(endPatterns: String*)(sys: ActorSystem = system): Unit =
if (!sys.log.isDebugEnabled) {
def mute(suffix: String): Unit =
sys.eventStream.publish(Mute(EventFilter.warning(pattern = ".*received dead.*" + suffix)))
if (endPatterns.isEmpty) mute("")
else endPatterns foreach mute
}
}