srowen commented on a change in pull request #31142:
URL: https://github.com/apache/spark/pull/31142#discussion_r556667603
##########
File path: core/src/test/scala/org/apache/spark/deploy/worker/WorkerSuite.scala
##########
@@ -51,7 +51,7 @@ class WorkerSuite extends SparkFunSuite with Matchers with
BeforeAndAfter {
import org.apache.spark.deploy.DeployTestUtils._
- @Mock(answer = RETURNS_SMART_NULLS) private var shuffleService:
ExternalShuffleService = _
+ @Mock(answer = RETURNS_SMART_NULLS) private val shuffleService:
ExternalShuffleService = null
Review comment:
Hm, I was going to wonder if we have to leave mocked members as 'var'
because the framework will change them. But it looks like tests pass.
----------------------------------------------------------------
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.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]