Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions core/src/test/scala/org/apache/spark/SparkContextSuite.scala
Original file line number Diff line number Diff line change
Expand Up @@ -761,7 +761,8 @@ class SparkContextSuite extends SparkFunSuite with LocalSparkContext with Eventu
sc = new SparkContext(conf)

// Ensure all executors has started
TestUtils.waitUntilExecutorsUp(sc, 1, 10000)
// if the machine is busy, the executor can't up under 10000ms, increase to 30000ms
TestUtils.waitUntilExecutorsUp(sc, 1, 30000)
assert(sc.resources.size === 1)
assert(sc.resources.get(GPU).get.addresses === Array("5", "6"))
assert(sc.resources.get(GPU).get.name === "gpu")
Expand Down Expand Up @@ -789,7 +790,8 @@ class SparkContextSuite extends SparkFunSuite with LocalSparkContext with Eventu
sc = new SparkContext(conf)

// Ensure all executors has started
TestUtils.waitUntilExecutorsUp(sc, 1, 10000)
// if the machine is busy, the executor can't up under 10000ms, increase to 30000ms
TestUtils.waitUntilExecutorsUp(sc, 1, 30000)
// driver gpu resources file should take precedence over the script
assert(sc.resources.size === 1)
assert(sc.resources.get(GPU).get.addresses === Array("0", "1", "8"))
Expand Down