Skip to content

Commit

Permalink
Remove test detritus (#1716)
Browse files Browse the repository at this point in the history
Was manually creating a hard-coded path in `/tmp/`.  No good.  Update to use
`tmp_path` fixture.
  • Loading branch information
khk-globus committed Nov 13, 2024
1 parent 6b32104 commit e6afcac
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions compute_endpoint/tests/unit/test_htex.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import os
import queue
import threading
import typing as t
Expand All @@ -18,7 +17,7 @@


@pytest.fixture
def htex():
def htex(tmp_path):
ep_id = uuid.uuid4()
executor = HighThroughputEngine(
address="127.0.0.1",
Expand All @@ -27,14 +26,10 @@ def htex():
worker_debug=True,
)
q = queue.Queue()
tempdir = "/tmp/HTEX_logs"

os.makedirs(tempdir, exist_ok=True)
executor.start(endpoint_id=ep_id, run_dir=tempdir, results_passthrough=q)
executor.start(endpoint_id=ep_id, run_dir=str(tmp_path), results_passthrough=q)

yield executor
executor.shutdown()
# shutil.rmtree(tempdir, ignore_errors=True)


def test_engine_submit_container_location(
Expand Down

0 comments on commit e6afcac

Please sign in to comment.