Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[MINOR][TESTS] Fix comments on
runIfTestsEnabled
methods
### What changes were proposed in this pull request? This PR aims to fix comments on `runIfTestsEnabled` methods. ### Why are the changes needed? Apache Spark repository has two `runIfTestsEnabled` methods whose comments are wrong or ambiguous. ``` $ git grep -C1 'def runIfTestsEnabled' connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/DockerIntegrationFunSuite.scala- /** Run the give body of code only if Kinesis tests are enabled */ connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/DockerIntegrationFunSuite.scala: def runIfTestsEnabled(message: String)(body: => Unit): Unit = { connector/docker-integration-tests/src/test/scala/org/apache/spark/sql/jdbc/DockerIntegrationFunSuite.scala- if (shouldRunTests) { -- connector/kinesis-asl/src/test/scala/org/apache/spark/streaming/kinesis/KinesisFunSuite.scala- /** Run the give body of code only if Kinesis tests are enabled */ connector/kinesis-asl/src/test/scala/org/apache/spark/streaming/kinesis/KinesisFunSuite.scala: def runIfTestsEnabled(message: String)(body: => Unit): Unit = { connector/kinesis-asl/src/test/scala/org/apache/spark/streaming/kinesis/KinesisFunSuite.scala- if (shouldRunTests) { ``` ### Does this PR introduce _any_ user-facing change? No, this is a comment revision. ### How was this patch tested? Manual review. ### Was this patch authored or co-authored using generative AI tooling? No. Closes #49393 from dongjoon-hyun/minor2. Authored-by: Dongjoon Hyun <[email protected]> Signed-off-by: yangjie01 <[email protected]>
- Loading branch information