浏览代码

[hive] Make it up to the caller to check for the status of a query in tests

As we also have query that are supposed to fail or some calls
that are not re-entrant.
Romain Rigaux 10 年之前
父节点
当前提交
b14b642
共有 1 个文件被更改,包括 1 次插入6 次删除
  1. 1 6
      apps/beeswax/src/beeswax/test_base.py

+ 1 - 6
apps/beeswax/src/beeswax/test_base.py

@@ -212,12 +212,7 @@ def wait_for_query_to_finish(client, response, max=60.0):
 
 
     response = client.get(watch_url, follow=True)
     response = client.get(watch_url, follow=True)
 
 
-  content = json.loads(response.content)
-
-  if content.get('status') == -1:
-    raise Exception('Query failed: %s' % content.get('message'))
-
-  return response
+  return json.loads(response.content)
 
 
 
 
 def is_finished(response):
 def is_finished(response):