Skip to content

Commit cb69dc5

Browse files
author
KaiXinXiaoLei
committed
change test
1 parent b7b42cc commit cb69dc5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

core/src/test/scala/org/apache/spark/deploy/StandaloneDynamicAllocationSuite.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,12 +390,12 @@ class StandaloneDynamicAllocationSuite
390390
var apps = getApplications()
391391
assert(apps.head.executors.size === 2)
392392
// kill executor 1
393-
assert(killNExecutors(sc, 1))
393+
assert(sc.killExecutor(executors.head))
394394
apps = getApplications()
395395
assert(apps.head.executors.size === 2)
396396
assert(apps.head.getExecutorLimit === 2)
397-
// kill all executors
398-
assert(killAllExecutors(sc)
397+
// kill executor 2
398+
assert(sc.killExecutor(executors(1)))
399399
apps = getApplications()
400400
assert(apps.head.executors.size === 1)
401401
assert(apps.head.getExecutorLimit === 1)

0 commit comments

Comments
 (0)