MaxGekk commented on code in PR #41878:
URL: https://github.com/apache/spark/pull/41878#discussion_r1254446849


##########
core/src/test/scala/org/apache/spark/SparkThrowableSuite.scala:
##########
@@ -155,17 +156,24 @@ class SparkThrowableSuite extends SparkFunSuite {
       .filter(_.startsWith("###")).map(s => s.replace("###", "").trim)
       .filter(linkInDocRegex.findFirstMatchIn(_).isEmpty)
 
-    commonErrorsInDoc.foreach(s => assert(errors.contains(s),
+    def assertWithOnlyClue(condition: Boolean, clue: String): Unit = {
+      if (!condition) {
+       throw new TestFailedException(s"assertion failed: $clue", 0)

Review Comment:
   ```suggestion
           throw new TestFailedException(s"assertion failed: $clue", 0)
   ```



-- 
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]

Reply via email to