浏览代码

[beeswax] Increase wait-time for create/insert partition table

Jenny Kim 10 年之前
父节点
当前提交
63c0550
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      apps/beeswax/src/beeswax/tests.py

+ 2 - 4
apps/beeswax/src/beeswax/tests.py

@@ -1685,8 +1685,7 @@ for x in sys.stdin:
       INSERT OVERWRITE TABLE test_partitions_int PARTITION (b=300)
         SELECT 301 AS a FROM test_partitions LIMIT 1;
     """
-    resp = _make_query(self.client, hql, database=self.db_name)
-    wait_for_query_to_finish(self.client, resp, max=120.0)
+    resp = _make_query(self.client, hql, wait=True, local=False, max=180.0, database=self.db_name)
 
     finish = conf.SAMPLE_TABLE_MAX_PARTITIONS.set_for_testing(2)
     try:
@@ -1702,8 +1701,7 @@ for x in sys.stdin:
     hql = """
       CREATE TABLE test_partitions_empty (a STRING) PARTITIONED BY (b STRING);
     """
-    resp = _make_query(self.client, hql, database=self.db_name)
-    wait_for_query_to_finish(self.client, resp, max=60.0)
+    resp = _make_query(self.client, hql, wait=True, local=False, max=60.0, database=self.db_name)
 
     finish = conf.SAMPLE_TABLE_MAX_PARTITIONS.set_for_testing(2)
     try: