瀏覽代碼

[hive] wait_for_query_to_finish should return a response in the tests

Romain Rigaux 10 年之前
父節點
當前提交
fc6758f
共有 1 個文件被更改,包括 1 次插入4 次删除
  1. 1 4
      apps/beeswax/src/beeswax/test_base.py

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

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