diff options
author | Marcelo Vanzin <vanzin@cloudera.com> | 2016-09-01 14:02:58 -0700 |
---|---|---|
committer | Marcelo Vanzin <vanzin@cloudera.com> | 2016-09-01 14:02:58 -0700 |
commit | edb45734f43216b352bfaaef00faaf43bbac38bf (patch) | |
tree | 5d2f474166fb001ac7b5e5a5accfd7394bf2e8b6 | |
parent | 3893e8c576cf1a6decc18701267ce7cd8caaf521 (diff) | |
download | spark-edb45734f43216b352bfaaef00faaf43bbac38bf.tar.gz spark-edb45734f43216b352bfaaef00faaf43bbac38bf.tar.bz2 spark-edb45734f43216b352bfaaef00faaf43bbac38bf.zip |
[SPARK-16533][HOTFIX] Fix compilation on Scala 2.10.
No idea why it was failing (the needed import was there), but
this makes things work.
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closes #14925 from vanzin/SPARK-16533.
-rw-r--r-- | mesos/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosCoarseGrainedSchedulerBackendSuite.scala | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/mesos/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosCoarseGrainedSchedulerBackendSuite.scala b/mesos/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosCoarseGrainedSchedulerBackendSuite.scala index 6948be0ead..bbc79dd1ed 100644 --- a/mesos/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosCoarseGrainedSchedulerBackendSuite.scala +++ b/mesos/src/test/scala/org/apache/spark/scheduler/cluster/mesos/MesosCoarseGrainedSchedulerBackendSuite.scala @@ -17,6 +17,8 @@ package org.apache.spark.scheduler.cluster.mesos +import java.util.concurrent.TimeUnit + import scala.collection.JavaConverters._ import scala.collection.mutable.ArrayBuffer import scala.concurrent.duration._ @@ -55,7 +57,7 @@ class MesosCoarseGrainedSchedulerBackendSuite extends SparkFunSuite // All 'requests' to the scheduler run immediately on the same thread, so // demand that all futures have their value available immediately. - implicit override val patienceConfig = PatienceConfig(timeout = 0.seconds) + implicit override val patienceConfig = PatienceConfig(timeout = Duration(0, TimeUnit.SECONDS)) test("mesos supports killing and limiting executors") { setBackend() |