vanzin commented on a change in pull request #26292: [SPARK-29635][SS] Extract 
base test suites between Kafka micro-batch sink and Kafka continuous sink
URL: https://github.com/apache/spark/pull/26292#discussion_r343256555
 
 

 ##########
 File path: core/src/main/scala/org/apache/spark/TestUtils.scala
 ##########
 @@ -214,12 +214,17 @@ private[spark] object TestUtils {
    * Asserts that exception message contains the message. Please note this 
checks all
    * exceptions in the tree.
    */
-  def assertExceptionMsg(exception: Throwable, msg: String): Unit = {
+  def assertExceptionMsg(exception: Throwable, msg: String, ignoreCase: 
Boolean = false): Unit = {
+    def contain(msg1: String, msg2: String): Boolean = {
+      if (ignoreCase) 
msg1.toLowerCase(Locale.ROOT).contains(msg2.toLowerCase(Locale.ROOT))
 
 Review comment:
   Use braces in multi-line conditions.

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


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to