harden ClusterSingletonManagerLeaseSpec, #29423
* default test timeout too short for the join
This commit is contained in:
parent
c41c0420ad
commit
fc44a02ae2
2 changed files with 19 additions and 13 deletions
|
|
@ -135,7 +135,7 @@ abstract class ExternalShardAllocationSpec
|
||||||
}
|
}
|
||||||
enterBarrier("allocated-to-new-node")
|
enterBarrier("allocated-to-new-node")
|
||||||
runOn(forth) {
|
runOn(forth) {
|
||||||
joinWithin(first)
|
joinWithin(first, max = 10.seconds)
|
||||||
}
|
}
|
||||||
enterBarrier("forth-node-joined")
|
enterBarrier("forth-node-joined")
|
||||||
runOn(first, second, third) {
|
runOn(first, second, third) {
|
||||||
|
|
|
||||||
|
|
@ -94,24 +94,30 @@ class ClusterSingletonManagerLeaseSpec
|
||||||
awaitClusterUp(controller, first)
|
awaitClusterUp(controller, first)
|
||||||
enterBarrier("initial-up")
|
enterBarrier("initial-up")
|
||||||
runOn(second) {
|
runOn(second) {
|
||||||
|
within(10.seconds) {
|
||||||
joinWithin(first)
|
joinWithin(first)
|
||||||
awaitAssert({
|
awaitAssert {
|
||||||
cluster.state.members.toList.map(_.status) shouldEqual List(Up, Up, Up)
|
cluster.state.members.toList.map(_.status) shouldEqual List(Up, Up, Up)
|
||||||
}, 10.seconds)
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
enterBarrier("second-up")
|
enterBarrier("second-up")
|
||||||
runOn(third) {
|
runOn(third) {
|
||||||
|
within(10.seconds) {
|
||||||
joinWithin(first)
|
joinWithin(first)
|
||||||
awaitAssert({
|
awaitAssert {
|
||||||
cluster.state.members.toList.map(_.status) shouldEqual List(Up, Up, Up, Up)
|
cluster.state.members.toList.map(_.status) shouldEqual List(Up, Up, Up, Up)
|
||||||
}, 10.seconds)
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
enterBarrier("third-up")
|
enterBarrier("third-up")
|
||||||
runOn(fourth) {
|
runOn(fourth) {
|
||||||
|
within(10.seconds) {
|
||||||
joinWithin(first)
|
joinWithin(first)
|
||||||
awaitAssert({
|
awaitAssert {
|
||||||
cluster.state.members.toList.map(_.status) shouldEqual List(Up, Up, Up, Up, Up)
|
cluster.state.members.toList.map(_.status) shouldEqual List(Up, Up, Up, Up, Up)
|
||||||
}, 10.seconds)
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
enterBarrier("fourth-up")
|
enterBarrier("fourth-up")
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue