Increase within timeouts in cluster sample tests, see #2699
This commit is contained in:
parent
b1d96c8794
commit
524bb65e0f
6 changed files with 10 additions and 10 deletions
|
|
@ -67,7 +67,7 @@ abstract class StatsSampleSingleMasterSpec extends MultiNodeSpec(StatsSampleSing
|
||||||
override def afterAll() = multiNodeSpecAfterAll()
|
override def afterAll() = multiNodeSpecAfterAll()
|
||||||
|
|
||||||
"The stats sample with single master" must {
|
"The stats sample with single master" must {
|
||||||
"illustrate how to startup cluster" in within(10 seconds) {
|
"illustrate how to startup cluster" in within(15 seconds) {
|
||||||
Cluster(system).subscribe(testActor, classOf[MemberUp])
|
Cluster(system).subscribe(testActor, classOf[MemberUp])
|
||||||
expectMsgClass(classOf[CurrentClusterState])
|
expectMsgClass(classOf[CurrentClusterState])
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -76,7 +76,7 @@ abstract class StatsSampleSpec extends MultiNodeSpec(StatsSampleSpecConfig)
|
||||||
"The stats sample" must {
|
"The stats sample" must {
|
||||||
|
|
||||||
//#startup-cluster
|
//#startup-cluster
|
||||||
"illustrate how to startup cluster" in within(10 seconds) {
|
"illustrate how to startup cluster" in within(15 seconds) {
|
||||||
Cluster(system).subscribe(testActor, classOf[MemberUp])
|
Cluster(system).subscribe(testActor, classOf[MemberUp])
|
||||||
expectMsgClass(classOf[CurrentClusterState])
|
expectMsgClass(classOf[CurrentClusterState])
|
||||||
|
|
||||||
|
|
@ -106,7 +106,7 @@ abstract class StatsSampleSpec extends MultiNodeSpec(StatsSampleSpecConfig)
|
||||||
|
|
||||||
|
|
||||||
//#test-statsService
|
//#test-statsService
|
||||||
"show usage of the statsService from one node" in within(5 seconds) {
|
"show usage of the statsService from one node" in within(15 seconds) {
|
||||||
runOn(second) {
|
runOn(second) {
|
||||||
val service = system.actorFor(node(third) / "user" / "statsService")
|
val service = system.actorFor(node(third) / "user" / "statsService")
|
||||||
service ! StatsJob("this is the text that will be analyzed")
|
service ! StatsJob("this is the text that will be analyzed")
|
||||||
|
|
@ -120,7 +120,7 @@ abstract class StatsSampleSpec extends MultiNodeSpec(StatsSampleSpecConfig)
|
||||||
}
|
}
|
||||||
//#test-statsService
|
//#test-statsService
|
||||||
|
|
||||||
"show usage of the statsService from all nodes" in within(5 seconds) {
|
"show usage of the statsService from all nodes" in within(15 seconds) {
|
||||||
val service = system.actorFor(node(third) / "user" / "statsService")
|
val service = system.actorFor(node(third) / "user" / "statsService")
|
||||||
service ! StatsJob("this is the text that will be analyzed")
|
service ! StatsJob("this is the text that will be analyzed")
|
||||||
val meanWordLength = expectMsgPF() {
|
val meanWordLength = expectMsgPF() {
|
||||||
|
|
|
||||||
|
|
@ -65,7 +65,7 @@ abstract class StatsSampleJapiSpec extends MultiNodeSpec(StatsSampleJapiSpecConf
|
||||||
|
|
||||||
"The japi stats sample" must {
|
"The japi stats sample" must {
|
||||||
|
|
||||||
"illustrate how to startup cluster" in within(10 seconds) {
|
"illustrate how to startup cluster" in within(15 seconds) {
|
||||||
Cluster(system).subscribe(testActor, classOf[MemberUp])
|
Cluster(system).subscribe(testActor, classOf[MemberUp])
|
||||||
expectMsgClass(classOf[CurrentClusterState])
|
expectMsgClass(classOf[CurrentClusterState])
|
||||||
|
|
||||||
|
|
@ -89,7 +89,7 @@ abstract class StatsSampleJapiSpec extends MultiNodeSpec(StatsSampleJapiSpecConf
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
"show usage of the statsService from one node" in within(5 seconds) {
|
"show usage of the statsService from one node" in within(15 seconds) {
|
||||||
runOn(second) {
|
runOn(second) {
|
||||||
val service = system.actorFor(node(third) / "user" / "statsService")
|
val service = system.actorFor(node(third) / "user" / "statsService")
|
||||||
service ! new StatsJob("this is the text that will be analyzed")
|
service ! new StatsJob("this is the text that will be analyzed")
|
||||||
|
|
@ -103,7 +103,7 @@ abstract class StatsSampleJapiSpec extends MultiNodeSpec(StatsSampleJapiSpecConf
|
||||||
}
|
}
|
||||||
//#test-statsService
|
//#test-statsService
|
||||||
|
|
||||||
"show usage of the statsService from all nodes" in within(5 seconds) {
|
"show usage of the statsService from all nodes" in within(15 seconds) {
|
||||||
val service = system.actorFor(node(third) / "user" / "statsService")
|
val service = system.actorFor(node(third) / "user" / "statsService")
|
||||||
service ! new StatsJob("this is the text that will be analyzed")
|
service ! new StatsJob("this is the text that will be analyzed")
|
||||||
val meanWordLength = expectMsgPF() {
|
val meanWordLength = expectMsgPF() {
|
||||||
|
|
|
||||||
|
|
@ -66,7 +66,7 @@ abstract class StatsSampleSingleMasterJapiSpec extends MultiNodeSpec(StatsSample
|
||||||
override def afterAll() = multiNodeSpecAfterAll()
|
override def afterAll() = multiNodeSpecAfterAll()
|
||||||
|
|
||||||
"The japi stats sample with single master" must {
|
"The japi stats sample with single master" must {
|
||||||
"illustrate how to startup cluster" in within(10 seconds) {
|
"illustrate how to startup cluster" in within(15 seconds) {
|
||||||
Cluster(system).subscribe(testActor, classOf[MemberUp])
|
Cluster(system).subscribe(testActor, classOf[MemberUp])
|
||||||
expectMsgClass(classOf[CurrentClusterState])
|
expectMsgClass(classOf[CurrentClusterState])
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ abstract class TransformationSampleSpec extends MultiNodeSpec(TransformationSamp
|
||||||
override def afterAll() = multiNodeSpecAfterAll()
|
override def afterAll() = multiNodeSpecAfterAll()
|
||||||
|
|
||||||
"The transformation sample" must {
|
"The transformation sample" must {
|
||||||
"illustrate how to start first frontend" in {
|
"illustrate how to start first frontend" in within(15 seconds) {
|
||||||
runOn(frontend1) {
|
runOn(frontend1) {
|
||||||
// this will only run on the 'first' node
|
// this will only run on the 'first' node
|
||||||
Cluster(system) join node(frontend1).address
|
Cluster(system) join node(frontend1).address
|
||||||
|
|
|
||||||
|
|
@ -53,7 +53,7 @@ abstract class TransformationSampleJapiSpec extends MultiNodeSpec(Transformation
|
||||||
override def afterAll() = multiNodeSpecAfterAll()
|
override def afterAll() = multiNodeSpecAfterAll()
|
||||||
|
|
||||||
"The japi transformation sample" must {
|
"The japi transformation sample" must {
|
||||||
"illustrate how to start first frontend" in {
|
"illustrate how to start first frontend" in within(15 seconds) {
|
||||||
runOn(frontend1) {
|
runOn(frontend1) {
|
||||||
// this will only run on the 'first' node
|
// this will only run on the 'first' node
|
||||||
Cluster(system) join node(frontend1).address
|
Cluster(system) join node(frontend1).address
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue