Skip to content

Commit

Permalink
fix nexus filename string
Browse files Browse the repository at this point in the history
  • Loading branch information
backmari committed Sep 3, 2024
1 parent 8242e99 commit 79cc602
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_autoreducer_memory_limit.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_reduction_script_exceeds_memory_limit(self, db_connection, request_page
assert response.url.endswith("/report/pg3/54321/")

# wait for job to be terminated and database to get updated
time.sleep(3.0)
time.sleep(5.0)

assert db_utils.check_run_status_exist(db_connection, run_id, "REDUCTION.REQUEST")
assert db_utils.check_run_status_exist(db_connection, run_id, "REDUCTION.STARTED")
Expand Down
4 changes: 2 additions & 2 deletions tests/utils/db_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def add_instrument_data_run(conn, instrument, ipts, run_number, facility="SNS"):
:param psycopg2.Connection conn: database connection
:param str instrument: instrument
:param str ipts: IPTS number
:param str ipts: IPTS identifier, e.g. "IPTS-1234"
:param int run_number: run number
:param str facility: facility (SNS or HFIR)
:return: int, ID of the run in table datarun
Expand Down Expand Up @@ -111,7 +111,7 @@ def add_instrument_data_run(conn, instrument, ipts, run_number, facility="SNS"):
run_number,
ipts_id[0],
inst_id[0],
f"/{facility}/{instrument}/IPTS-{ipts}/nexus/{instrument}_{run_number}.nxs.h5",
f"/{facility}/{instrument.upper()}/{ipts}/nexus/{instrument.upper()}_{run_number}.nxs.h5",
"2020-05-20 13:02:52.281964;",
),
)
Expand Down

0 comments on commit 79cc602

Please sign in to comment.