Skip to content

Commit

Permalink
Stabilize test_purge_while_job_running test
Browse files Browse the repository at this point in the history
In the extended_metadata + remote tool_evaluation_strategy the
commandline is templated as part of the job, so we need to give the test
more time to start running before we delete outputs (as then we can't
template the command line anymore).
  • Loading branch information
mvdbeek committed Jul 4, 2024
1 parent ed81681 commit e395ea7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion test/integration/objectstore/_purged_handling.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ def purge_while_job_running(dataset_populator: DatasetPopulator, extra_sleep=0):
response = dataset_populator.run_tool(
"all_output_types",
inputs={
"sleep_param": 5,
"sleep_param": 5 + extra_sleep,
},
history_id=history_id,
)
Expand Down
2 changes: 1 addition & 1 deletion test/integration/test_extended_metadata.py
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ def test_fetch_data_library(self):
def test_purge_while_job_running(self):
# pass extra_sleep, since templating the command line will fail if the output
# is deleted before remote_tool_eval runs.
purge_while_job_running(self.dataset_populator, extra_sleep=4)
purge_while_job_running(self.dataset_populator, extra_sleep=10)


class TestExtendedMetadataDeferredIntegration(integration_util.IntegrationTestCase):
Expand Down

0 comments on commit e395ea7

Please sign in to comment.