Skip to content

Commit

Permalink
removed fake scratch dir at the end of the test
Browse files Browse the repository at this point in the history
  • Loading branch information
burnout87 committed May 16, 2024
1 parent f421b98 commit 2e37c1e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion tests/test_server_basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@ def test_error_two_scratch_dir_same_job_id(dispatcher_live_fixture):

job_id = jdata['job_monitor']['job_id']
session_id = jdata['session_id']
os.makedirs(f'scratch_sid_01234567890_jid_{job_id}')
fake_scratch_dir = f'scratch_sid_01234567890_jid_{job_id}'
os.makedirs(fake_scratch_dir)

params['job_id'] = job_id
params['session_id'] = session_id
Expand All @@ -271,6 +272,7 @@ def test_error_two_scratch_dir_same_job_id(dispatcher_live_fixture):
)
assert jdata['error'] == 'InternalError():We have encountered an internal error! Our team is notified and is working on it. We are sorry! When we find a solution we will try to reach you'
assert jdata['error_message'] == 'We have encountered an internal error! Our team is notified and is working on it. We are sorry! When we find a solution we will try to reach you'
os.rmdir(fake_scratch_dir)


@pytest.mark.fast
Expand Down

0 comments on commit 2e37c1e

Please sign in to comment.