panbingkun commented on code in PR #41341:
URL: https://github.com/apache/spark/pull/41341#discussion_r1207901888
##########
core/src/test/scala/org/apache/spark/HeartbeatReceiverSuite.scala:
##########
@@ -73,7 +73,7 @@ class HeartbeatReceiverSuite
.setMaster("local[2]")
.setAppName("test")
.set(DYN_ALLOCATION_TESTING, true)
- sc = spy(new SparkContext(conf))
+ sc = spy[SparkContext](new SparkContext(conf))
Review Comment:
Why change it? The following error will be reported if not changed:
<img width="1243" alt="image"
src="https://github.com/apache/spark/assets/15246973/280bf2c4-1077-41cd-97d8-07e03df7ac12">
--
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]