Skip to content

Commit c471490

Browse files
committed
Oops, removed one flag too many. Adding it back.
1 parent 85311f8 commit c471490

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

core/src/test/scala/org/apache/spark/CacheManagerSuite.scala

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@ import org.scalatest.{BeforeAndAfter, FunSuite}
2323
import org.scalatest.mock.EasyMockSugar
2424

2525
import org.apache.spark.rdd.RDD
26-
import org.apache.spark.executor.TaskMetrics
2726
import org.apache.spark.storage._
2827

2928
// TODO: Test the CacheManager's thread-safety aspects
@@ -84,7 +83,7 @@ class CacheManagerSuite extends FunSuite with BeforeAndAfter with EasyMockSugar
8483
}
8584

8685
whenExecuting(blockManager) {
87-
val context = new TaskContext(0, 0, 0)
86+
val context = new TaskContext(0, 0, 0, runningLocally = true)
8887
val value = cacheManager.getOrCompute(rdd, split, context, StorageLevel.MEMORY_ONLY)
8988
assert(value.toList === List(1, 2, 3, 4))
9089
}

0 commit comments

Comments
 (0)