You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@spark.apache.org by ya...@apache.org on 2023/12/28 02:53:15 UTC

(spark) branch master updated: [SPARK-46514][TESTS] Fix HiveMetastoreLazyInitializationSuite

This is an automated email from the ASF dual-hosted git repository.

yao pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/spark.git


The following commit(s) were added to refs/heads/master by this push:
     new d0245d34c004 [SPARK-46514][TESTS] Fix HiveMetastoreLazyInitializationSuite
d0245d34c004 is described below

commit d0245d34c004935bb2c904bfd906836df3d574fa
Author: Kent Yao <ya...@apache.org>
AuthorDate: Thu Dec 28 10:53:02 2023 +0800

    [SPARK-46514][TESTS] Fix HiveMetastoreLazyInitializationSuite
    
    ### What changes were proposed in this pull request?
    
    This PR enabled the assertion in HiveMetastoreLazyInitializationSuite
    
    ### Why are the changes needed?
    
    fix test intenton
    
    ### Does this PR introduce _any_ user-facing change?
    
    no
    
    ### How was this patch tested?
    
    pass HiveMetastoreLazyInitializationSuite
    
    ### Was this patch authored or co-authored using generative AI tooling?
    
    no
    
    Closes #44500 from yaooqinn/SPARK-46514.
    
    Authored-by: Kent Yao <ya...@apache.org>
    Signed-off-by: Kent Yao <ya...@apache.org>
---
 .../apache/spark/sql/hive/HiveMetastoreLazyInitializationSuite.scala   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/HiveMetastoreLazyInitializationSuite.scala b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/HiveMetastoreLazyInitializationSuite.scala
index af11b817d65b..b8739ce56e41 100644
--- a/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/HiveMetastoreLazyInitializationSuite.scala
+++ b/sql/hive-thriftserver/src/test/scala/org/apache/spark/sql/hive/HiveMetastoreLazyInitializationSuite.scala
@@ -61,11 +61,10 @@ class HiveMetastoreLazyInitializationSuite extends SparkFunSuite {
         spark.sql("show tables")
       })
       for (msg <- Seq(
-        "show tables",
         "Could not connect to meta store",
         "org.apache.thrift.transport.TTransportException",
         "Connection refused")) {
-        exceptionString.contains(msg)
+        assert(exceptionString.contains(msg))
       }
     } finally {
       Thread.currentThread().setContextClassLoader(originalClassLoader)


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@spark.apache.org
For additional commands, e-mail: commits-help@spark.apache.org