* ResetSystemMessageSeqNrSpec should not run with classic remoting, #26849 * Jenkins job overrides config with -Dakka.remote.artery.enabled=off * use Scalatest withFixture
This commit is contained in:
parent
c70370b4d6
commit
4e5c8fe626
1 changed files with 11 additions and 0 deletions
|
|
@ -9,6 +9,8 @@ import akka.actor.setup.ActorSystemSetup
|
|||
import akka.remote.RARP
|
||||
import akka.testkit.{ AkkaSpec, SocketUtil }
|
||||
import com.typesafe.config.{ Config, ConfigFactory }
|
||||
import org.scalatest.Outcome
|
||||
import org.scalatest.Pending
|
||||
|
||||
/**
|
||||
* Base class for remoting tests what needs to test interaction between a "local" actor system
|
||||
|
|
@ -38,6 +40,15 @@ abstract class ArteryMultiNodeSpec(config: Config)
|
|||
|
||||
private var remoteSystems: Vector[ActorSystem] = Vector.empty
|
||||
|
||||
override protected def withFixture(test: NoArgTest): Outcome = {
|
||||
// note that withFixture is also used in FlightRecorderSpecIntegration
|
||||
if (!RARP(system).provider.remoteSettings.Artery.Enabled) {
|
||||
info(s"${getClass.getName} is only enabled for Artery")
|
||||
Pending
|
||||
} else
|
||||
super.withFixture(test)
|
||||
}
|
||||
|
||||
/**
|
||||
* @return A new actor system configured with artery enabled. The system will
|
||||
* automatically be terminated after test is completed to avoid leaks.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue