Skip to content
This repository has been archived by the owner on Nov 29, 2023. It is now read-only.

Commit

Permalink
Fix test for available resources (ray-project#2914)
Browse files Browse the repository at this point in the history
  • Loading branch information
pschafhalter authored and robertnishihara committed Sep 26, 2018
1 parent 971df5e commit fcdca6d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions python/ray/test/test_global_state.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ class TestAvailableResources(object):

def test_no_tasks(self):
cluster_resources = ray.global_state.cluster_resources()
available_resources = ray.global_state.cluster_resources()
available_resources = ray.global_state.available_resources()
assert cluster_resources == available_resources

def test_replenish_resources(self):
Expand All @@ -37,8 +37,8 @@ def test_replenish_resources(self):
resources_reset = False

while not resources_reset and time.time() - start < self.timeout:
resources_reset = (
cluster_resources == ray.global_state.available_resources())
available_resources = ray.global_state.available_resources()
resources_reset = (cluster_resources == available_resources)

assert resources_reset

Expand Down

0 comments on commit fcdca6d

Please sign in to comment.