Skip to content
This repository was archived by the owner on Jan 9, 2020. It is now read-only.

Commit 6273b74

Browse files
committed
Fix test
1 parent a9375c5 commit 6273b74

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

resource-managers/kubernetes/core/src/test/scala/org/apache/spark/scheduler/cluster/kubernetes/ExecutorPodFactorySuite.scala

+2-1
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,7 @@ class ExecutorPodFactoryImplSuite extends SparkFunSuite with BeforeAndAfter {
143143
val conf = baseConf.clone()
144144
conf.set(KUBERNETES_SHUFFLE_LABELS, "label=value")
145145
conf.set(KUBERNETES_SHUFFLE_NAMESPACE, "default")
146+
conf.set(KUBERNETES_SHUFFLE_DIR, "/tmp")
146147

147148
val kubernetesExternalShuffleClient = new KubernetesExternalShuffleClientImpl(
148149
SparkTransportConf.fromSparkConf(conf, "shuffle"),
@@ -185,7 +186,7 @@ class ExecutorPodFactoryImplSuite extends SparkFunSuite with BeforeAndAfter {
185186
assert(executor.getSpec.getVolumes.get(0).getSecret.getSecretName == "secret1")
186187

187188
checkOwnerReferences(executor, driverPodUid)
188-
checkEnv(executor, Set())
189+
checkEnv(executor, Set("SPARK_MOUNTED_FILES_FROM_SECRET_DIR"))
189190
}
190191

191192
test("classpath and extra java options get translated into environment variables") {

0 commit comments

Comments
 (0)