Skip to content

Commit

Permalink
fix: avoid name collisions in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
MehmedGIT committed Aug 27, 2024
1 parent 456debb commit ca824f5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/tests_utils/test_hpc_nhr_executor.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
from os.path import join
from time import sleep

current_time = datetime.now().strftime("%Y%m%d_%H%M")
current_time = datetime.now().strftime("%Y%m%d_%H%M%S%f")


def test_hpc_connector_executor_mk_dir(hpc_nhr_command_executor):
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_utils/test_hpc_nhr_transfer.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from tests.constants import BATCH_SCRIPT_EMPTY

OPERANDI_SERVER_BASE_DIR = environ.get("OPERANDI_SERVER_BASE_DIR")
current_time = datetime.now().strftime("%Y%m%d_%H%M")
current_time = datetime.now().strftime("%Y%m%d_%H%M%S%f")
ID_WORKSPACE = f"test_folder_{current_time}"

def test_hpc_connector_transfer_file(hpc_nhr_data_transfer, path_batch_script_empty):
Expand Down
2 changes: 1 addition & 1 deletion tests/tests_utils/test_hpc_nhr_xcombined.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

OPERANDI_SERVER_BASE_DIR = environ.get("OPERANDI_SERVER_BASE_DIR")

current_time = datetime.now().strftime("%Y%m%d_%H%M")
current_time = datetime.now().strftime("%Y%m%d_%H%M%S%f")
ID_WORKFLOW_JOB_WITH_MS = f"test_wf_job_ms_{current_time}"
ID_WORKSPACE_WITH_MS = f"test_ws_ms_{current_time}"
ID_WORKFLOW_JOB = f"test_wf_job_{current_time}"
Expand Down

0 comments on commit ca824f5

Please sign in to comment.