dongjoon-hyun commented on a change in pull request #35373:
URL: https://github.com/apache/spark/pull/35373#discussion_r796145098
##########
File path:
resource-managers/kubernetes/core/src/test/scala/org/apache/spark/scheduler/cluster/k8s/ExecutorRollPluginSuite.scala
##########
@@ -132,7 +132,9 @@ class ExecutorRollPluginSuite extends SparkFunSuite with
PrivateMethodTester {
}
test("A one-item executor list") {
- ExecutorRollPolicy.values.foreach { value =>
+ ExecutorRollPolicy.values
+ .filter(_ != ExecutorRollPolicy.OUTLIER)
+ .foreach { value =>
Review comment:
The following would be shorter and reasonable.
```scala
ExecutorRollPolicy.values.filter(_ != ExecutorRollPolicy.OUTLIER).foreach {
value =>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]