Selaa lähdekoodia

[hive] wait_for_query_to_finish should return a response in the tests

Romain Rigaux 10 vuotta sitten
vanhempi
commit
fc6758f
1 muutettua tiedostoa jossa 1 lisäystä ja 4 poistoa
  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)
   content = json.loads(response.content)
 
 
-  if content.get('status') == -1:
-    raise Exception('Query failed: %s' % content.get('message'))
-
   watch_url = content['watch_url']
   watch_url = content['watch_url']
 
 
   response = client.get(watch_url, follow=True)
   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)
     response = client.get(watch_url, follow=True)
 
 
-  return json.loads(response.content)
+  return response
 
 
 
 
 def is_finished(response):
 def is_finished(response):