CTTY commented on code in PR #5943:
URL: https://github.com/apache/hudi/pull/5943#discussion_r926134427


##########
hudi-spark-datasource/hudi-spark/src/test/scala/org/apache/spark/sql/hudi/HoodieSparkSqlTestBase.scala:
##########
@@ -140,8 +140,11 @@ class HoodieSparkSqlTestBase extends FunSuite with 
BeforeAndAfterAll {
       spark.sql(sql)
     } catch {
       case e: Throwable =>
-        assertResult(true)(e.getMessage.contains(errorMsg))
-        hasException = true
+        if (e.getMessage.contains(errorMsg)) {

Review Comment:
   It makes the unit test eaiser to debug. I was seeing some issues with 
unittests but previous code only gives out limited info



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

Reply via email to