[Autoscaler] Run resource demand scheduler in CI (#9945)

* .

* .
This commit is contained in:
Alex Wu
2020-08-07 13:30:39 -07:00
committed by GitHub
parent ca37accc07
commit a54d3a1cee
3 changed files with 4 additions and 1 deletions
+1
View File
@@ -41,6 +41,7 @@ py_test_module_list(
"test_output.py",
"test_placement_group.py",
"test_reconstruction.py",
"test_resource_demand_scheduler.py",
"test_reference_counting_2.py",
"test_reference_counting.py",
"test_stress.py",
@@ -146,11 +146,12 @@ def test_get_instances_respects_max_limit():
class AutoscalingTest(unittest.TestCase):
def setUp(self):
NODE_PROVIDERS["mock"] = \
lambda: (None, self.create_provider)
lambda config: self.create_provider
self.provider = None
self.tmpdir = tempfile.mkdtemp()
def tearDown(self):
self.provider = None
del NODE_PROVIDERS["mock"]
shutil.rmtree(self.tmpdir)
ray.shutdown()