Skip to content

Commit

Permalink
Reenable Unstable KillServiceActorTest test cases.
Browse files Browse the repository at this point in the history
Summary: See #4721

Test Plan: sbt test

Reviewers: jeschkies, unterstein

Reviewed By: jeschkies, unterstein

Subscribers: jenkins, marathon-team

Differential Revision: https://phabricator.mesosphere.com/D423
  • Loading branch information
aquamatthias authored and unterstein committed Mar 3, 2017
1 parent 8b11880 commit d071db9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 7 deletions.
Expand Up @@ -15,7 +15,6 @@ import mesosphere.marathon.core.task.termination.InstanceChangedPredicates.consi
import mesosphere.marathon.core.task.Task.Id

import scala.collection.mutable
import scala.collection.immutable.Seq
import scala.concurrent.Promise
import scala.util.Try

Expand All @@ -39,7 +38,6 @@ import scala.util.Try
*
* See [[KillConfig]] for configuration options.
*/
// TODO(PODS): use immutable.Seq instead of Seqs
private[impl] class KillServiceActor(
driverHolder: MarathonSchedulerDriverHolder,
stateOpProcessor: TaskStateOpProcessor,
Expand Down
Expand Up @@ -19,7 +19,6 @@ import mesosphere.marathon.core.task.tracker.TaskStateOpProcessor
import mesosphere.marathon.raml.Resources
import mesosphere.marathon.state.{ PathId, Timestamp }
import mesosphere.marathon.stream._
import mesosphere.Unstable
import org.apache.mesos
import org.apache.mesos.SchedulerDriver
import org.mockito.ArgumentCaptor
Expand All @@ -30,7 +29,6 @@ import org.scalatest.time.{ Seconds, Span }
import scala.concurrent.Promise
import scala.concurrent.duration._

@UnstableTest
class KillServiceActorTest extends AkkaUnitTest {

override implicit def patienceConfig: PatienceConfig = PatienceConfig(timeout = scaled(Span(10, Seconds)))
Expand All @@ -48,7 +46,6 @@ class KillServiceActorTest extends AkkaUnitTest {

"The KillServiceActor" when {

// TODO(PODS): verify this test is still flaky https://github.com/mesosphere/marathon/issues/4202
"asked to kill a single known instance" should {
"issue a kill to the driver" in withActor(defaultConfig) { (f, actor) =>
val instance = f.mockInstance(f.runSpecId, f.now(), mesos.Protos.TaskState.TASK_RUNNING)
Expand Down Expand Up @@ -78,7 +75,7 @@ class KillServiceActorTest extends AkkaUnitTest {
}

"asked to kill single known unreachable instance" should {
"issue no kill to the driver because the task is unreachable and send an expunge" taggedAs (Unstable) in withActor(defaultConfig) { (f, actor) =>
"issue no kill to the driver because the task is unreachable and send an expunge" in withActor(defaultConfig) { (f, actor) =>

val instance = f.mockInstance(f.runSpecId, f.now(), mesos.Protos.TaskState.TASK_UNREACHABLE)
val promise = Promise[Done]()
Expand All @@ -94,7 +91,7 @@ class KillServiceActorTest extends AkkaUnitTest {
}

"asked to kill multiple instances at once" should {
"issue three kill requests to the driver" taggedAs (Unstable) in withActor(defaultConfig) { (f, actor) =>
"issue three kill requests to the driver" in withActor(defaultConfig) { (f, actor) =>
val runningInstance = f.mockInstance(f.runSpecId, f.clock.now(), mesos.Protos.TaskState.TASK_RUNNING)
val unreachableInstance = f.mockInstance(f.runSpecId, f.clock.now(), mesos.Protos.TaskState.TASK_UNREACHABLE)
val stagingInstance = f.mockInstance(f.runSpecId, f.clock.now(), mesos.Protos.TaskState.TASK_STAGING)
Expand Down

0 comments on commit d071db9

Please sign in to comment.