Skip to content
Snippets Groups Projects
Commit edb45734 authored by Marcelo Vanzin's avatar Marcelo Vanzin
Browse files

[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.
parent 3893e8c5
No related branches found
No related tags found
No related merge requests found
......@@ -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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment