Browse Source

IS-1147 [hive] Fixed TestHiveserver2ApiWithHadoop failed during unit tests (#1148)

Co-authored-by: Romain Rigaux <romain.rigaux@gmail.com>
Sungpeo Kook 5 năm trước cách đây
mục cha
commit
0040dba555

+ 3 - 0
desktop/libs/notebook/src/notebook/connectors/hiveserver2_tests.py

@@ -826,6 +826,9 @@ class TestHiveserver2ApiWithHadoop(BeeswaxSampleProvider):
 
   @classmethod
   def setup_class(cls):
+    if not is_live_cluster():
+      raise SkipTest('These tests can only run on a live cluster')
+
     super(TestHiveserver2ApiWithHadoop, cls).setup_class(load_data=False)