Skip to content

Commit

Permalink
Expect Kill job msg class
Browse files Browse the repository at this point in the history
  • Loading branch information
petro-rudenko committed Mar 26, 2015
1 parent dcb732e commit 9c8de1d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion job-server/test/spark.jobserver/JobManagerSpec.scala
Original file line number Diff line number Diff line change
Expand Up @@ -206,7 +206,7 @@ abstract class JobManagerSpec extends JobSpecBase(JobManagerSpec.getNewSystem) {
expectMsgPF(1 seconds, "Did not get JobResult") {
case JobStarted(id, _, _) => {
manager ! KillJob(id)
expectNoMsg() //TODO: get somehow an event that job failed or job finished
expectMsgClass(classOf[JobKilled])
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion job-server/test/spark.jobserver/JobSpecBase.scala
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ with FunSpecLike with Matchers with BeforeAndAfter with BeforeAndAfterAll with T
import CommonMessages._

val errorEvents: Set[Class[_]] = Set(classOf[JobErroredOut], classOf[JobValidationFailed],
classOf[NoJobSlotsAvailable])
classOf[NoJobSlotsAvailable], classOf[JobKilled])
val asyncEvents = Set(classOf[JobStarted])
val syncEvents = Set(classOf[JobResult])
val allEvents = errorEvents ++ asyncEvents ++ syncEvents ++ Set(classOf[JobFinished])
Expand Down

0 comments on commit 9c8de1d

Please sign in to comment.