Skip to content

Commit

Permalink
fix ray test
Browse files Browse the repository at this point in the history
  • Loading branch information
Cathy0908 committed Dec 24, 2024
1 parent 5628a16 commit ae28aca
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions tests/tools/test_process_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -88,9 +88,8 @@ class ProcessDataRayTest(DataJuicerTestCaseBase):
def setUp(self):
super().setUp()

self._auto_create_ray_cluster()

self.tmp_dir = tempfile.TemporaryDirectory().name
# self._auto_create_ray_cluster()
self.tmp_dir = f'/workspace/tmp/{self.__class__.__name__}'
if not osp.exists(self.tmp_dir):
os.makedirs(self.tmp_dir)

Expand Down Expand Up @@ -129,8 +128,8 @@ def tearDown(self):
import ray
ray.shutdown()

if self.tmp_ray_cluster:
self._close_ray_cluster()
# if self.tmp_ray_cluster:
# self._close_ray_cluster()

def test_ray_image(self):
tmp_yaml_file = osp.join(self.tmp_dir, 'config_0.yaml')
Expand Down

0 comments on commit ae28aca

Please sign in to comment.