[xray] Re-enable some stress tests and convert stress_tests to pytest. (#2285)

* Fix one of the stress tests, fix ray.global_state.client_table when called early on.

* Re-enable testWait.

* Convert stress_tests.py to pytest.

* Fix
This commit is contained in:
Robert Nishihara
2018-07-06 23:21:00 -07:00
committed by Philipp Moritz
parent 3a972893ee
commit e3534c46df
3 changed files with 493 additions and 491 deletions
+6
View File
@@ -500,6 +500,12 @@ class GlobalState(object):
message = self.redis_client.execute_command(
"RAY.TABLE_LOOKUP", ray.gcs_utils.TablePrefix.CLIENT, "",
NIL_CLIENT_ID)
# Handle the case where no clients are returned. This should only
# occur potentially immediately after the cluster is started.
if message is None:
return []
node_info = []
gcs_entry = ray.gcs_utils.GcsTableEntry.GetRootAsGcsTableEntry(
message, 0)