Преглед изворни кода

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

Co-authored-by: Romain Rigaux <romain.rigaux@gmail.com>
Sungpeo Kook пре 5 година
родитељ
комит
0040dba555
1 измењених фајлова са 3 додато и 0 уклоњено
  1. 3 0
      desktop/libs/notebook/src/notebook/connectors/hiveserver2_tests.py

+ 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)