You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@impala.apache.org by ta...@apache.org on 2020/05/11 15:52:37 UTC

[impala] 02/02: IMPALA-9380: addendum - remove redundant assert

This is an automated email from the ASF dual-hosted git repository.

tarmstrong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/impala.git

commit b3af05f43d7420c76367c31f7b870e9d04bac0bb
Author: Tim Armstrong <ta...@cloudera.com>
AuthorDate: Wed May 6 09:31:13 2020 -0700

    IMPALA-9380: addendum - remove redundant assert
    
    Change-Id: I4ff4ff0a92f928314064b492c13904bec5ec6d5e
    Reviewed-on: http://gerrit.cloudera.org:8080/15876
    Reviewed-by: Impala Public Jenkins <im...@cloudera.com>
    Tested-by: Impala Public Jenkins <im...@cloudera.com>
---
 tests/hs2/test_json_endpoints.py | 7 +------
 1 file changed, 1 insertion(+), 6 deletions(-)

diff --git a/tests/hs2/test_json_endpoints.py b/tests/hs2/test_json_endpoints.py
index d17628d..d661bf7 100644
--- a/tests/hs2/test_json_endpoints.py
+++ b/tests/hs2/test_json_endpoints.py
@@ -101,12 +101,7 @@ class TestJsonEndpoints(HS2TestSuite):
       return len(queries_json["in_flight_queries"]) == 0
 
     self.assert_eventually(60, 0.1, no_inflight_queries)
-    start_time = time()
-    TIMEOUT_S = 60
-    while time() - start_time < TIMEOUT_S:
-      queries_json = self._get_json_queries(http_addr)
-      if len(queries_json["in_flight_queries"]) == 0:
-        break
+    queries_json = self._get_json_queries(http_addr)
     assert len(queries_json["in_flight_queries"]) == 0
     assert queries_json["num_in_flight_queries"] == 0
     assert queries_json["num_executing_queries"] == 0