diff --git a/tests/integration_tests/test_integration_dds.py b/tests/integration_tests/test_integration_dds.py index 2fe08f1..8fa7947 100644 --- a/tests/integration_tests/test_integration_dds.py +++ b/tests/integration_tests/test_integration_dds.py @@ -249,11 +249,6 @@ def test_can_organise_stage_and_deliver_force_flowcells(self): staging_status_links = response_json.get("staging_order_links") staging_order_ids = response_json.get("staging_order_ids") - # Assert the staged folder structure has only one runfolder folder - temp_staging_dir = f"/tmp/{staging_order_ids.get('JKL_123')}/JKL_123" - for runfolder in os.listdir(temp_staging_dir): - self.assertFalse(set(runfolder).issuperset(set(os.listdir(f"{temp_staging_dir}/{runfolder}")))) - # Insert a pause to allow staging to complete time.sleep(1) @@ -263,6 +258,11 @@ def test_can_organise_stage_and_deliver_force_flowcells(self): status_response = yield self.http_client.fetch(link) self.assertEqual(json.loads(status_response.body)["status"], StagingStatus.staging_successful.name) + # Assert the staged folder structure has only one runfolder folder + temp_staging_dir = f"/tmp/{staging_order_ids.get('JKL_123')}/JKL_123" + for runfolder in os.listdir(temp_staging_dir): + self.assertFalse(runfolder in os.listdir(f"{temp_staging_dir}/{runfolder}")) + @gen_test def test_can_create_project(self): project_name = "CD-1234"