Unverified Commit e395ea7d authored by mvdbeek's avatar mvdbeek
Browse files

Stabilize test_purge_while_job_running test

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).
parent ed81681f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,
        )
+1 −1
Original line number Diff line number Diff line
@@ -100,7 +100,7 @@ class TestExtendedMetadataIntegration(integration_util.IntegrationTestCase):
    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):